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 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.media}); CropStatus.fromJson(Map 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']; media = json['media']; } Map toJson() { final Map data = new Map(); 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['media'] = this.media; return data; } }