family.dart 649 B

12345678910111213141516171819202122232425262728293031
  1. import 'package:json_annotation/json_annotation.dart';
  2. part 'family.g.dart';
  3. @JsonSerializable()
  4. class FamilyModel {
  5. int id;
  6. String familyNum;
  7. int? maleChickenId;
  8. String? maleBatchNum;
  9. int? femaleChickenId;
  10. String? femaleBatchNum;
  11. int? breedDate;
  12. int? status;
  13. FamilyModel({
  14. required this.id,
  15. required this.familyNum,
  16. this.maleChickenId,
  17. this.maleBatchNum,
  18. this.femaleChickenId,
  19. this.femaleBatchNum,
  20. this.breedDate,
  21. this.status,
  22. });
  23. factory FamilyModel.fromJson(Map<String, dynamic> json) =>
  24. _$FamilyModelFromJson(json);
  25. Map<String, dynamic> toJson() => _$FamilyModelToJson(this);
  26. }