FilterSet.fromJson constructor

FilterSet.fromJson(
  1. Map _json
)

Implementation

FilterSet.fromJson(core.Map _json)
    : this(
        absoluteDateRange: _json.containsKey('absoluteDateRange')
            ? AbsoluteDateRange.fromJson(_json['absoluteDateRange']
                as core.Map<core.String, core.dynamic>)
            : null,
        breakdownDimensions: _json.containsKey('breakdownDimensions')
            ? (_json['breakdownDimensions'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        creativeId: _json.containsKey('creativeId')
            ? _json['creativeId'] as core.String
            : null,
        dealId: _json.containsKey('dealId')
            ? _json['dealId'] as core.String
            : null,
        environment: _json.containsKey('environment')
            ? _json['environment'] as core.String
            : null,
        format: _json.containsKey('format')
            ? _json['format'] as core.String
            : null,
        formats: _json.containsKey('formats')
            ? (_json['formats'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        platforms: _json.containsKey('platforms')
            ? (_json['platforms'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        publisherIdentifiers: _json.containsKey('publisherIdentifiers')
            ? (_json['publisherIdentifiers'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        realtimeTimeRange: _json.containsKey('realtimeTimeRange')
            ? RealtimeTimeRange.fromJson(_json['realtimeTimeRange']
                as core.Map<core.String, core.dynamic>)
            : null,
        relativeDateRange: _json.containsKey('relativeDateRange')
            ? RelativeDateRange.fromJson(_json['relativeDateRange']
                as core.Map<core.String, core.dynamic>)
            : null,
        sellerNetworkIds: _json.containsKey('sellerNetworkIds')
            ? (_json['sellerNetworkIds'] as core.List)
                .map<core.int>((value) => value as core.int)
                .toList()
            : null,
        timeSeriesGranularity: _json.containsKey('timeSeriesGranularity')
            ? _json['timeSeriesGranularity'] as core.String
            : null,
      );