class Supply {
  int? id;
  num? quantity;
  String? unit;
  int? tbWarehouseId;
  String? tbWarehouseName;
  String? tbSuppliesName;
  int? tbSuppliesId;
  bool? isSelected;

  Supply({this.id, this.quantity, this.unit, this.tbWarehouseId, this.tbWarehouseName, this.tbSuppliesName, this.tbSuppliesId, this.isSelected});

  Supply.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    quantity = json['quantity'];
    unit = json['unit'];
    tbWarehouseId = json['tbWarehouseId'];
    tbWarehouseName = json['tbWarehouseName'];
    tbSuppliesName = json['tbSuppliesName'];
    tbSuppliesId = json['tbSuppliesId'];
    isSelected = false;
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['id'] = id;
    data['quantity'] = quantity;
    data['unit'] = unit;
    data['tbWarehouseId'] = tbWarehouseId;
    data['tbWarehouseName'] = tbWarehouseName;
    data['tbSuppliesName'] = tbSuppliesName;
    data['tbSuppliesId'] = tbSuppliesId;
    return data;
  }
}
