ReachReportCompatibleFields.fromJson constructor

ReachReportCompatibleFields.fromJson(
  1. Map json_
)

Implementation

ReachReportCompatibleFields.fromJson(core.Map json_)
    : this(
        dimensionFilters: json_.containsKey('dimensionFilters')
            ? (json_['dimensionFilters'] as core.List)
                .map((value) => Dimension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        dimensions: json_.containsKey('dimensions')
            ? (json_['dimensions'] 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,
        pivotedActivityMetrics: json_.containsKey('pivotedActivityMetrics')
            ? (json_['pivotedActivityMetrics'] as core.List)
                .map((value) => Metric.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        reachByFrequencyMetrics: json_.containsKey('reachByFrequencyMetrics')
            ? (json_['reachByFrequencyMetrics'] as core.List)
                .map((value) => Metric.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );