IotDataChanges.fromJson constructor
IotDataChanges.fromJson(
- Map<String, dynamic> json
)
Implementation
IotDataChanges.fromJson(Map<String, dynamic> json) {
sensor =
json['sensor'] != null ? SensorMini?.fromJson(json['sensor']) : null;
startDate = json['start_date'];
endDate = json['end_date'];
timeDelta = json['time_delta'];
deleted = json['deleted'];
value = json['value'];
extraData = json['extra_data'];
if (json['together'] != null) {
together = <Together>[];
json['together'].forEach((v) {
together!.add(Together.fromJson(v));
});
}
id = json['id'];
}