import 'package:json_annotation/json_annotation.dart'; part 'batch.g.dart'; @JsonSerializable() class BatchModel { String batchNum; String batchName; int? chickenCount; DateTime? hatchDate; int? status; int? varietyId; String? varietyName; String? lineage; int? generation; int? batchType; String? wingTagNumScope; int? currentAge; BatchModel({ required this.batchNum, required this.batchName, this.chickenCount, this.hatchDate, this.status, this.varietyId, this.varietyName, this.lineage, this.generation, this.batchType, this.wingTagNumScope, this.currentAge, }); factory BatchModel.fromJson(Map json) => _$BatchModelFromJson(json); Map toJson() => _$BatchModelToJson(this); }