| 1234567891011121314151617181920212223242526272829303132333435363738 |
- 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<String, dynamic> json) => _$BatchModelFromJson(json);
- Map<String, dynamic> toJson() => _$BatchModelToJson(this);
- }
|