chicken.dart 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'chicken.g.dart';
  3. @JsonSerializable()
  4. class ChickenModel {
  5. int id;
  6. String electronicId;
  7. String batchNum;
  8. int gender;
  9. DateTime hatchDate;
  10. // String wingTagNum;
  11. // String legTag;
  12. // int familyId;
  13. String familyNum;
  14. // int cageId;
  15. String? cageNum;
  16. DateTime? cullTime;
  17. int? status;
  18. int? cullReason;
  19. int? disposalMethod;
  20. int? currentAge;
  21. String? feedSopName;
  22. String? drugSopName;
  23. String? vaccineSopName;
  24. ChickenModel({
  25. required this.id,
  26. required this.electronicId,
  27. required this.batchNum,
  28. required this.gender,
  29. required this.hatchDate,
  30. // required this.wingTagNum,
  31. // required this.legTag,
  32. // required this.familyId,
  33. required this.familyNum,
  34. // required this.cageId,
  35. this.cageNum,
  36. this.cullTime,
  37. this.status,
  38. this.cullReason,
  39. this.disposalMethod,
  40. this.currentAge,
  41. this.feedSopName,
  42. this.drugSopName,
  43. this.vaccineSopName,
  44. });
  45. factory ChickenModel.fromJson(Map<String, dynamic> json) =>
  46. _$ChickenModelFromJson(json);
  47. Map<String, dynamic> toJson() => _$ChickenModelToJson(this);
  48. }