TimeSeriesDescriptor.fromJson constructor

TimeSeriesDescriptor.fromJson(
  1. Map json_
)

Implementation

TimeSeriesDescriptor.fromJson(core.Map json_)
    : this(
        labelDescriptors: json_.containsKey('labelDescriptors')
            ? (json_['labelDescriptors'] as core.List)
                .map((value) => LabelDescriptor.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pointDescriptors: json_.containsKey('pointDescriptors')
            ? (json_['pointDescriptors'] as core.List)
                .map((value) => ValueDescriptor.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );