ReportPathCriteria.fromJson constructor

ReportPathCriteria.fromJson(
  1. Map json_
)

Implementation

ReportPathCriteria.fromJson(core.Map json_)
    : this(
        activityFilters: json_.containsKey('activityFilters')
            ? (json_['activityFilters'] as core.List)
                .map((value) => DimensionValue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        customChannelGrouping: json_.containsKey('customChannelGrouping')
            ? ChannelGrouping.fromJson(json_['customChannelGrouping']
                as core.Map<core.String, core.dynamic>)
            : null,
        dateRange: json_.containsKey('dateRange')
            ? DateRange.fromJson(
                json_['dateRange'] as core.Map<core.String, core.dynamic>)
            : 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,
        pathFilters: json_.containsKey('pathFilters')
            ? (json_['pathFilters'] as core.List)
                .map((value) => PathFilter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );