QueryTimeSeriesResponse.fromJson constructor

QueryTimeSeriesResponse.fromJson(
  1. Map json_
)

Implementation

QueryTimeSeriesResponse.fromJson(core.Map json_)
    : this(
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        partialErrors: json_.containsKey('partialErrors')
            ? (json_['partialErrors'] as core.List)
                .map((value) => Status.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        timeSeriesData: json_.containsKey('timeSeriesData')
            ? (json_['timeSeriesData'] as core.List)
                .map((value) => TimeSeriesData.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        timeSeriesDescriptor: json_.containsKey('timeSeriesDescriptor')
            ? TimeSeriesDescriptor.fromJson(json_['timeSeriesDescriptor']
                as core.Map<core.String, core.dynamic>)
            : null,
      );