TimeSeries.fromJSON constructor
TimeSeries.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory TimeSeries.fromJSON(Map<String, dynamic> data) {
return TimeSeries(
fields: (data["fields"] as List<dynamic>).map((x0) => (x0 as String) ).toList(),
samples: (data["samples"] as List<dynamic>).map((x0) => (x0 as List<dynamic>).map((x1) => (x1 as num).toDouble() ).toList() ).toList(),
min: (data["min"] as List<dynamic>).map((x0) => (x0 as num).toDouble() ).toList(),
max: (data["max"] as List<dynamic>).map((x0) => (x0 as num).toDouble() ).toList(),
mean: (data["mean"] as List<dynamic>).map((x0) => (x0 as num).toDouble() ).toList(),
median: (data["median"] as List<dynamic>).map((x0) => (x0 as num).toDouble() ).toList(),
variance: (data["variance"] as List<dynamic>).map((x0) => (x0 as num).toDouble() ).toList()
);
}