class SuppliesUsing { int id; String dosage; int quantity; String howToUse; int suppliesInWarehouseId; int equipmentOfCustomerId; SuppliesUsing( {this.id, this.dosage, this.quantity, this.howToUse, this.suppliesInWarehouseId, this.equipmentOfCustomerId}); SuppliesUsing.fromJson(Map json) { id = json['id']; dosage = json['dosage']; quantity = json['quantity']; howToUse = json['howToUse']; suppliesInWarehouseId = json['suppliesInWarehouseId']; equipmentOfCustomerId = json['equipmentOfCustomerId']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['dosage'] = this.dosage; data['quantity'] = this.quantity; data['howToUse'] = this.howToUse; data['suppliesInWarehouseId'] = this.suppliesInWarehouseId; data['equipmentOfCustomerId'] = this.equipmentOfCustomerId; return data; } }