ProgressTimeseries.fromJson constructor

ProgressTimeseries.fromJson(
  1. 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,
      );