AdGroup.fromJson constructor

AdGroup.fromJson(
  1. Map json_
)

Implementation

AdGroup.fromJson(core.Map json_)
    : this(
        adGroupFormat: json_.containsKey('adGroupFormat')
            ? json_['adGroupFormat'] as core.String
            : null,
        adGroupId: json_.containsKey('adGroupId')
            ? json_['adGroupId'] as core.String
            : null,
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        bidStrategy: json_.containsKey('bidStrategy')
            ? BiddingStrategy.fromJson(
                json_['bidStrategy'] 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,
        lineItemId: json_.containsKey('lineItemId')
            ? json_['lineItemId'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        productFeedData: json_.containsKey('productFeedData')
            ? ProductFeedData.fromJson(json_['productFeedData']
                as core.Map<core.String, core.dynamic>)
            : null,
        targetingExpansion: json_.containsKey('targetingExpansion')
            ? TargetingExpansionConfig.fromJson(json_['targetingExpansion']
                as core.Map<core.String, core.dynamic>)
            : null,
      );