ListTimeSeriesResponse.fromJson constructor

ListTimeSeriesResponse.fromJson(
  1. Map _json
)

Implementation

ListTimeSeriesResponse.fromJson(core.Map _json) {
  if (_json.containsKey("executionErrors")) {
    executionErrors = (_json["executionErrors"] as core.List)
        .map<Status>((value) => new Status.fromJson(value))
        .toList();
  }
  if (_json.containsKey("nextPageToken")) {
    nextPageToken = _json["nextPageToken"];
  }
  if (_json.containsKey("timeSeries")) {
    timeSeries = (_json["timeSeries"] as core.List)
        .map<TimeSeries>((value) => new TimeSeries.fromJson(value))
        .toList();
  }
  if (_json.containsKey("unit")) {
    unit = _json["unit"];
  }
}