|
- 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 data = <String, dynamic>{};
- data['id'] = id;
- data['activityId'] = activityId;
- data['cropId'] = cropId;
- data['executeDate'] = executeDate;
- data['media'] = media;
- data['typesOfPest'] = typesOfPest;
- data['harmLevel'] = harmLevel;
- data['treePercent'] = treePercent;
- data['location'] = location;
- data['naturalEnemy'] = naturalEnemy;
- data['treatmentMeasures'] = treatmentMeasures;
- data['description'] = description;
- data['executeBy'] = executeBy;
- return data;
- }
- }
|