| 12345678910111213141516171819202122232425262728293031 |
- import 'package:json_annotation/json_annotation.dart';
- part 'family.g.dart';
- @JsonSerializable()
- class FamilyModel {
- int id;
- String familyNum;
- int? maleChickenId;
- String? maleBatchNum;
- int? femaleChickenId;
- String? femaleBatchNum;
- int? breedDate;
- int? status;
- FamilyModel({
- required this.id,
- required this.familyNum,
- this.maleChickenId,
- this.maleBatchNum,
- this.femaleChickenId,
- this.femaleBatchNum,
- this.breedDate,
- this.status,
- });
- factory FamilyModel.fromJson(Map<String, dynamic> json) =>
- _$FamilyModelFromJson(json);
- Map<String, dynamic> toJson() => _$FamilyModelToJson(this);
- }
|