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