IotData.fromJson constructor

IotData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

IotData.fromJson(Map<String, dynamic> json) {
  date = json['date'];
  company =
      json['company'] != null ? Company?.fromJson(json['company']) : null;
  collector = json['collector'] != null
      ? Collector?.fromJson(json['collector'])
      : null;
  machine =
      json['machine'] != null ? Machine?.fromJson(json['machine']) : null;
  deleted = json['deleted'];
  sensor = json['sensor'];
  min = json['min'];
  max = json['max'];
  avg = json['avg'];
  datab = json['data'] != null ? json['data'] : null;
  id = json['id'];
}