EventTag.fromJson constructor

EventTag.fromJson(
  1. Map json_
)

Implementation

EventTag.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,
        campaignId: json_.containsKey('campaignId')
            ? json_['campaignId'] as core.String
            : null,
        campaignIdDimensionValue:
            json_.containsKey('campaignIdDimensionValue')
                ? DimensionValue.fromJson(json_['campaignIdDimensionValue']
                    as core.Map<core.String, core.dynamic>)
                : null,
        enabledByDefault: json_.containsKey('enabledByDefault')
            ? json_['enabledByDefault'] as core.bool
            : null,
        excludeFromAdxRequests: json_.containsKey('excludeFromAdxRequests')
            ? json_['excludeFromAdxRequests'] as core.bool
            : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        siteFilterType: json_.containsKey('siteFilterType')
            ? json_['siteFilterType'] as core.String
            : null,
        siteIds: json_.containsKey('siteIds')
            ? (json_['siteIds'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        sslCompliant: json_.containsKey('sslCompliant')
            ? json_['sslCompliant'] as core.bool
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
        subaccountId: json_.containsKey('subaccountId')
            ? json_['subaccountId'] as core.String
            : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
        urlEscapeLevels: json_.containsKey('urlEscapeLevels')
            ? json_['urlEscapeLevels'] as core.int
            : null,
      );