|
- class CropStatus {
- int id;
- int cropId;
- String executeDate;
- num cropRate;
- num numberOfTreeToGrow;
- num hightOfTree;
- num numberOfLeaf;
- num leafSize;
- String leafColor;
- String abilityProduceBuds;
- num bodySize;
- String note;
-
- CropStatus(
- {this.id,
- this.cropId,
- this.executeDate,
- this.cropRate,
- this.numberOfTreeToGrow,
- this.hightOfTree,
- this.numberOfLeaf,
- this.leafSize,
- this.leafColor,
- this.abilityProduceBuds,
- this.bodySize,
- this.note});
-
- CropStatus.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- cropId = json['cropId'];
- executeDate = json['executeDate'];
- cropRate = json['cropRate'];
- numberOfTreeToGrow = json['numberOfTreeToGrow'];
- hightOfTree = json['hightOfTree'];
- numberOfLeaf = json['numberOfLeaf'];
- leafSize = json['leafSize'];
- leafColor = json['leafColor'];
- abilityProduceBuds = json['abilityProduceBuds'];
- bodySize = json['bodySize'];
- note = json['note'];
- }
-
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['id'] = this.id;
- data['cropId'] = this.cropId;
- data['executeDate'] = this.executeDate;
- data['cropRate'] = this.cropRate;
- data['numberOfTreeToGrow'] = this.numberOfTreeToGrow;
- data['hightOfTree'] = this.hightOfTree;
- data['numberOfLeaf'] = this.numberOfLeaf;
- data['leafSize'] = this.leafSize;
- data['leafColor'] = this.leafColor;
- data['abilityProduceBuds'] = this.abilityProduceBuds;
- data['bodySize'] = this.bodySize;
- data['note'] = this.note;
- return data;
- }
- }
|