You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
881B

  1. class NurseryDetail {
  2. int id;
  3. String workerName;
  4. String trayNumber;
  5. int tbNurseryId;
  6. NurseryDetail({this.id, this.workerName, this.trayNumber, this.tbNurseryId});
  7. NurseryDetail.clone(NurseryDetail nurseryDetail) {
  8. this.id = nurseryDetail.id;
  9. this.workerName = nurseryDetail.workerName;
  10. this.trayNumber = nurseryDetail.trayNumber;
  11. this.tbNurseryId = nurseryDetail.tbNurseryId;
  12. }
  13. NurseryDetail.fromJson(Map<String, dynamic> json) {
  14. id = json['id'];
  15. workerName = json['workerName'];
  16. trayNumber = json['trayNumber'];
  17. tbNurseryId = json['tbNurseryId'];
  18. }
  19. Map<String, dynamic> toJson() {
  20. final Map<String, dynamic> data = new Map<String, dynamic>();
  21. data['id'] = this.id;
  22. data['workerName'] = this.workerName;
  23. data['trayNumber'] = this.trayNumber;
  24. data['tbNurseryId'] = this.tbNurseryId;
  25. return data;
  26. }
  27. }