class UseWater { int id; int activityId; int cropId; String executeDate; String media; String waterType; num amount; String description; String executeBy; UseWater( {this.id, this.activityId, this.cropId, this.executeDate, this.media, this.waterType, this.amount, this.description, this.executeBy}); UseWater.fromJson(Map json) { id = json['id']; activityId = json['activityId']; cropId = json['cropId']; executeDate = json['executeDate']; media = json['media']; waterType = json['waterType']; amount = json['amount']; description = json['description']; executeBy = json['executeBy']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['activityId'] = this.activityId; data['cropId'] = this.cropId; data['executeDate'] = this.executeDate; data['media'] = this.media; data['waterType'] = this.waterType; data['amount'] = this.amount; data['description'] = this.description; data['executeBy'] = this.executeBy; return data; } }