import 'package:json_annotation/json_annotation.dart'; part 'chicken.g.dart'; @JsonSerializable() class ChickenModel { int id; String electronicId; String batchNum; int gender; DateTime hatchDate; // String wingTagNum; // String legTag; // int familyId; String familyNum; // int cageId; String? cageNum; DateTime? cullTime; int? status; int? cullReason; int? disposalMethod; int? currentAge; String? feedSopName; String? drugSopName; String? vaccineSopName; ChickenModel({ required this.id, required this.electronicId, required this.batchNum, required this.gender, required this.hatchDate, // required this.wingTagNum, // required this.legTag, // required this.familyId, required this.familyNum, // required this.cageId, this.cageNum, this.cullTime, this.status, this.cullReason, this.disposalMethod, this.currentAge, this.feedSopName, this.drugSopName, this.vaccineSopName, }); factory ChickenModel.fromJson(Map json) => _$ChickenModelFromJson(json); Map toJson() => _$ChickenModelToJson(this); }