ProgressTimeseries.fromJson constructor
ProgressTimeseries.fromJson(
- Map _json
Implementation
ProgressTimeseries.fromJson(core.Map _json)
: this(
currentProgress: _json.containsKey('currentProgress')
? (_json['currentProgress'] as core.num).toDouble()
: null,
dataPoints: _json.containsKey('dataPoints')
? (_json['dataPoints'] as core.List)
.map((value) => Point.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);