|
- class Environment {
- int id;
- int activityId;
- int cropId;
- String executeDate;
- String media;
- String description;
- String executeBy;
- String pH;
- String ec;
- String ocdd;
- String temperature;
- String dodo;
- String lln;
-
- Environment(
- {this.id,
- this.activityId,
- this.cropId,
- this.executeDate,
- this.media,
- this.description,
- this.executeBy,
- this.pH,
- this.ec,
- this.ocdd,
- this.temperature,
- this.dodo,
- this.lln});
-
- Environment.fromJson(Map<String, dynamic> json) {
- id = json['id'];
- activityId = json['activityId'];
- cropId = json['cropId'];
- executeDate = json['executeDate'];
- media = json['media'];
- description = json['description'];
- executeBy = json['executeBy'];
- pH = json['pH'];
- ec = json['ec'];
- ocdd = json['ocdd'];
- temperature = json['temperature'];
- dodo = json['dodo'];
- lln = json['lln'];
- }
-
- 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['description'] = this.description;
- data['executeBy'] = this.executeBy;
- data['pH'] = this.pH;
- data['ec'] = this.ec;
- data['ocdd'] = this.ocdd;
- data['temperature'] = this.temperature;
- data['dodo'] = this.dodo;
- data['lln'] = this.lln;
- return data;
- }
- }
|