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 json) => _$FamilyModelFromJson(json); Map toJson() => _$FamilyModelToJson(this); }