TargetingTemplate.fromJson constructor

TargetingTemplate.fromJson(
  1. Map json_
)

Implementation

TargetingTemplate.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        advertiserIdDimensionValue:
            json_.containsKey('advertiserIdDimensionValue')
                ? DimensionValue.fromJson(json_['advertiserIdDimensionValue']
                    as core.Map<core.String, core.dynamic>)
                : null,
        dayPartTargeting: json_.containsKey('dayPartTargeting')
            ? DayPartTargeting.fromJson(json_['dayPartTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        geoTargeting: json_.containsKey('geoTargeting')
            ? GeoTargeting.fromJson(
                json_['geoTargeting'] as core.Map<core.String, core.dynamic>)
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        keyValueTargetingExpression:
            json_.containsKey('keyValueTargetingExpression')
                ? KeyValueTargetingExpression.fromJson(
                    json_['keyValueTargetingExpression']
                        as core.Map<core.String, core.dynamic>)
                : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        languageTargeting: json_.containsKey('languageTargeting')
            ? LanguageTargeting.fromJson(json_['languageTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
        listTargetingExpression: json_.containsKey('listTargetingExpression')
            ? ListTargetingExpression.fromJson(
                json_['listTargetingExpression']
                    as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        subaccountId: json_.containsKey('subaccountId')
            ? json_['subaccountId'] as core.String
            : null,
        technologyTargeting: json_.containsKey('technologyTargeting')
            ? TechnologyTargeting.fromJson(json_['technologyTargeting']
                as core.Map<core.String, core.dynamic>)
            : null,
      );