ReportReachCriteria.fromJson constructor

ReportReachCriteria.fromJson(
  1. Map json_
)

Implementation

ReportReachCriteria.fromJson(core.Map json_)
    : this(
        activities: json_.containsKey('activities')
            ? Activities.fromJson(
                json_['activities'] as core.Map<core.String, core.dynamic>)
            : null,
        customRichMediaEvents: json_.containsKey('customRichMediaEvents')
            ? CustomRichMediaEvents.fromJson(json_['customRichMediaEvents']
                as core.Map<core.String, core.dynamic>)
            : null,
        dateRange: json_.containsKey('dateRange')
            ? DateRange.fromJson(
                json_['dateRange'] as core.Map<core.String, core.dynamic>)
            : null,
        dimensionFilters: json_.containsKey('dimensionFilters')
            ? (json_['dimensionFilters'] as core.List)
                .map((value) => DimensionValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        dimensions: json_.containsKey('dimensions')
            ? (json_['dimensions'] as core.List)
                .map((value) => SortedDimension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        enableAllDimensionCombinations:
            json_.containsKey('enableAllDimensionCombinations')
                ? json_['enableAllDimensionCombinations'] as core.bool
                : null,
        metricNames: json_.containsKey('metricNames')
            ? (json_['metricNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        reachByFrequencyMetricNames:
            json_.containsKey('reachByFrequencyMetricNames')
                ? (json_['reachByFrequencyMetricNames'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
      );