Advertiser.fromJson constructor

Advertiser.fromJson(
  1. Map json_
)

Implementation

Advertiser.fromJson(core.Map json_)
    : this(
        adServerConfig: json_.containsKey('adServerConfig')
            ? AdvertiserAdServerConfig.fromJson(json_['adServerConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        billingConfig: json_.containsKey('billingConfig')
            ? AdvertiserBillingConfig.fromJson(
                json_['billingConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        creativeConfig: json_.containsKey('creativeConfig')
            ? AdvertiserCreativeConfig.fromJson(json_['creativeConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        dataAccessConfig: json_.containsKey('dataAccessConfig')
            ? AdvertiserDataAccessConfig.fromJson(json_['dataAccessConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        entityStatus: json_.containsKey('entityStatus')
            ? json_['entityStatus'] as core.String
            : null,
        generalConfig: json_.containsKey('generalConfig')
            ? AdvertiserGeneralConfig.fromJson(
                json_['generalConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        integrationDetails: json_.containsKey('integrationDetails')
            ? IntegrationDetails.fromJson(json_['integrationDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        partnerId: json_.containsKey('partnerId')
            ? json_['partnerId'] as core.String
            : null,
        prismaEnabled: json_.containsKey('prismaEnabled')
            ? json_['prismaEnabled'] as core.bool
            : null,
        servingConfig: json_.containsKey('servingConfig')
            ? AdvertiserTargetingConfig.fromJson(
                json_['servingConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );