ReportFloodlightCriteria.fromJson constructor

ReportFloodlightCriteria.fromJson(
  1. Map json_
)

Implementation

ReportFloodlightCriteria.fromJson(core.Map json_)
    : this(
        customRichMediaEvents: json_.containsKey('customRichMediaEvents')
            ? (json_['customRichMediaEvents'] as core.List)
                .map((value) => DimensionValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : 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,
        floodlightConfigId: json_.containsKey('floodlightConfigId')
            ? DimensionValue.fromJson(json_['floodlightConfigId']
                as core.Map<core.String, core.dynamic>)
            : null,
        metricNames: json_.containsKey('metricNames')
            ? (json_['metricNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        reportProperties: json_.containsKey('reportProperties')
            ? ReportFloodlightCriteriaReportProperties.fromJson(
                json_['reportProperties']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );