|
- 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<String, dynamic> json) {
- id = json['id'];
- cropId = json['cropId'];
- executeDate = json['executeDate'];
- description = json['description'];
- waterType = json['waterType'];
- amount = json['amount'];
- }
-
- 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['description'] = this.description;
- data['waterType'] = this.waterType;
- data['amount'] = this.amount;
- return data;
- }
- }
|