batch.dart 798 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'batch.g.dart';
  3. @JsonSerializable()
  4. class BatchModel {
  5. String batchNum;
  6. String batchName;
  7. int? chickenCount;
  8. DateTime? hatchDate;
  9. int? status;
  10. int? varietyId;
  11. String? varietyName;
  12. String? lineage;
  13. int? generation;
  14. int? batchType;
  15. String? wingTagNumScope;
  16. int? currentAge;
  17. BatchModel({
  18. required this.batchNum,
  19. required this.batchName,
  20. this.chickenCount,
  21. this.hatchDate,
  22. this.status,
  23. this.varietyId,
  24. this.varietyName,
  25. this.lineage,
  26. this.generation,
  27. this.batchType,
  28. this.wingTagNumScope,
  29. this.currentAge,
  30. });
  31. factory BatchModel.fromJson(Map<String, dynamic> json) => _$BatchModelFromJson(json);
  32. Map<String, dynamic> toJson() => _$BatchModelToJson(this);
  33. }