RunRealtimeReportResponse.fromJson constructor

RunRealtimeReportResponse.fromJson(
  1. Map json_
)

Implementation

RunRealtimeReportResponse.fromJson(core.Map json_)
    : this(
        dimensionHeaders: json_.containsKey('dimensionHeaders')
            ? (json_['dimensionHeaders'] as core.List)
                .map((value) => DimensionHeader.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        maximums: json_.containsKey('maximums')
            ? (json_['maximums'] as core.List)
                .map((value) => Row.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        metricHeaders: json_.containsKey('metricHeaders')
            ? (json_['metricHeaders'] as core.List)
                .map((value) => MetricHeader.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        minimums: json_.containsKey('minimums')
            ? (json_['minimums'] as core.List)
                .map((value) => Row.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        propertyQuota: json_.containsKey('propertyQuota')
            ? PropertyQuota.fromJson(
                json_['propertyQuota'] as core.Map<core.String, core.dynamic>)
            : null,
        rowCount: json_.containsKey('rowCount')
            ? json_['rowCount'] as core.int
            : null,
        rows: json_.containsKey('rows')
            ? (json_['rows'] as core.List)
                .map((value) => Row.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        totals: json_.containsKey('totals')
            ? (json_['totals'] as core.List)
                .map((value) => Row.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );