|
- class SuppliesUsing {
- int id;
- String dosage;
- num quantity;
- String unit;
- String howToUse;
- int suppliesInWarehouseId;
- int equipmentOfCustomerId;
- int tbSuppliesInWarehouseId;
- String supplyName;
- String supplyUnit;
-
- SuppliesUsing(
- {this.id,
- this.dosage,
- this.quantity,
- this.unit,
- this.howToUse,
- this.suppliesInWarehouseId,
- this.equipmentOfCustomerId,
- this.tbSuppliesInWarehouseId,
- this.supplyName,
- this.supplyUnit});
-
- SuppliesUsing.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- dosage = json['dosage'];
- quantity = json['quantity'];
- unit = json['unit'];
- howToUse = json['howToUse'];
- suppliesInWarehouseId = json['suppliesInWarehouseId'];
- equipmentOfCustomerId = json['equipmentOfCustomerId'];
- tbSuppliesInWarehouseId = json['tbSuppliesInWarehouseId'];
- supplyName = json['supplyName'];
- supplyUnit = json['supplyUnit'];
- }
-
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['id'] = this.id;
- data['dosage'] = this.dosage;
- data['quantity'] = this.quantity;
- data['unit'] = this.unit;
- data['howToUse'] = this.howToUse;
- data['suppliesInWarehouseId'] = this.suppliesInWarehouseId;
- data['equipmentOfCustomerId'] = this.equipmentOfCustomerId;
- data['tbSuppliesInWarehouseId'] = this.tbSuppliesInWarehouseId;
- data['supplyName'] = this.supplyName;
- data['supplyUnit'] = this.supplyUnit;
- return data;
- }
- }
|