|
- class CropStatus {
- int id;
- int cropId;
- int activityId;
- String executeDate;
- String cropRate;
- String numberOfTreeToGrow;
- String heightOfTree;
- String numberOfLeaf;
- String leafSize;
- String leafColor;
- String abilityProduceBuds;
- String internodeLength;
- String description;
- String executeBy;
- String media;
-
- CropStatus(
- {this.id,
- this.cropId,
- this.activityId,
- this.executeDate,
- this.cropRate,
- this.numberOfTreeToGrow,
- this.heightOfTree,
- this.numberOfLeaf,
- this.leafSize,
- this.leafColor,
- this.abilityProduceBuds,
- this.internodeLength,
- this.description,
- this.executeBy,
- this.media});
-
- CropStatus.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- cropId = json['cropId'];
- activityId = json['activityId'];
- executeDate = json['executeDate'];
- cropRate = json['cropRate'];
- numberOfTreeToGrow = json['numberOfTreeToGrow'];
- heightOfTree = json['heightOfTree'];
- numberOfLeaf = json['numberOfLeaf'];
- leafSize = json['leafSize'];
- leafColor = json['leafColor'];
- abilityProduceBuds = json['abilityProduceBuds'];
- internodeLength = json['internodeLength'];
- description = json['description'];
- executeBy = json['executeBy'];
- media = json['media'];
- }
-
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['id'] = this.id;
- data['cropId'] = this.cropId;
- data['activityId'] = this.activityId;
- data['executeDate'] = this.executeDate;
- data['cropRate'] = this.cropRate;
- data['numberOfTreeToGrow'] = this.numberOfTreeToGrow;
- data['heightOfTree'] = this.heightOfTree;
- data['numberOfLeaf'] = this.numberOfLeaf;
- data['leafSize'] = this.leafSize;
- data['leafColor'] = this.leafColor;
- data['abilityProduceBuds'] = this.abilityProduceBuds;
- data['internodeLength'] = this.internodeLength;
- data['description'] = this.description;
- data['executeBy'] = this.executeBy;
- data['media'] = this.media;
- return data;
- }
- }
|