| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- 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<String, dynamic> json) =>
- _$ChickenModelFromJson(json);
- Map<String, dynamic> toJson() => _$ChickenModelToJson(this);
- }
|