CrossDimensionReachReportCompatibleFields.fromJson constructor

CrossDimensionReachReportCompatibleFields.fromJson(
  1. Map json_
)

Implementation

CrossDimensionReachReportCompatibleFields.fromJson(core.Map json_)
    : this(
        breakdown: json_.containsKey('breakdown')
            ? (json_['breakdown'] as core.List)
                .map((value) => Dimension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        dimensionFilters: json_.containsKey('dimensionFilters')
            ? (json_['dimensionFilters'] as core.List)
                .map((value) => Dimension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        metrics: json_.containsKey('metrics')
            ? (json_['metrics'] as core.List)
                .map((value) => Metric.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        overlapMetrics: json_.containsKey('overlapMetrics')
            ? (json_['overlapMetrics'] as core.List)
                .map((value) => Metric.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );