PointData.fromJson constructor

PointData.fromJson(
  1. Map json_
)

Implementation

PointData.fromJson(core.Map json_)
    : this(
        timeInterval: json_.containsKey('timeInterval')
            ? TimeInterval.fromJson(
                json_['timeInterval'] as core.Map<core.String, core.dynamic>)
            : null,
        values: json_.containsKey('values')
            ? (json_['values'] as core.List)
                .map((value) => TypedValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );