|
- class Disease {
- int id;
- int activityId;
- int cropId;
- String executeDate;
- String media;
- String typesOfPest;
- String harmLevel;
- String treePercent;
- String location;
- String naturalEnemy;
- String treatmentMeasures;
- String description;
- String executeBy;
-
- Disease(
- {this.id,
- this.activityId,
- this.cropId,
- this.executeDate,
- this.media,
- this.typesOfPest,
- this.harmLevel,
- this.treePercent,
- this.location,
- this.naturalEnemy,
- this.treatmentMeasures,
- this.description,
- this.executeBy});
-
- Disease.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- activityId = json['activityId'];
- cropId = json['cropId'];
- executeDate = json['executeDate'];
- media = json['media'];
- typesOfPest = json['typesOfPest'];
- harmLevel = json['harmLevel'];
- treePercent = json['treePercent'];
- location = json['location'];
- naturalEnemy = json['naturalEnemy'];
- treatmentMeasures = json['treatmentMeasures'];
- description = json['description'];
- executeBy = json['executeBy'];
- }
-
- Map<String, dynamic> toJson() {
- final Map<String, dynamic> data = new Map<String, dynamic>();
- data['id'] = this.id;
- data['activityId'] = this.activityId;
- data['cropId'] = this.cropId;
- data['executeDate'] = this.executeDate;
- data['media'] = this.media;
- data['typesOfPest'] = this.typesOfPest;
- data['harmLevel'] = this.harmLevel;
- data['treePercent'] = this.treePercent;
- data['location'] = this.location;
- data['naturalEnemy'] = this.naturalEnemy;
- data['treatmentMeasures'] = this.treatmentMeasures;
- data['description'] = this.description;
- data['executeBy'] = this.executeBy;
- return data;
- }
- }
|