GoogleCloudApigeeV1QueryTimeSeriesStatsRequest.fromJson constructor

GoogleCloudApigeeV1QueryTimeSeriesStatsRequest.fromJson(
  1. Map json_
)

Implementation

GoogleCloudApigeeV1QueryTimeSeriesStatsRequest.fromJson(core.Map json_)
    : this(
        dimensions: json_.containsKey('dimensions')
            ? (json_['dimensions'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        filter: json_.containsKey('filter')
            ? json_['filter'] as core.String
            : null,
        metrics: json_.containsKey('metrics')
            ? (json_['metrics'] as core.List)
                .map((value) => GoogleCloudApigeeV1MetricAggregation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pageSize: json_.containsKey('pageSize')
            ? json_['pageSize'] as core.int
            : null,
        pageToken: json_.containsKey('pageToken')
            ? json_['pageToken'] as core.String
            : null,
        timeRange: json_.containsKey('timeRange')
            ? GoogleTypeInterval.fromJson(
                json_['timeRange'] as core.Map<core.String, core.dynamic>)
            : null,
        timestampOrder: json_.containsKey('timestampOrder')
            ? json_['timestampOrder'] as core.String
            : null,
        windowSize: json_.containsKey('windowSize')
            ? json_['windowSize'] as core.String
            : null,
      );