Campaign.fromJson constructor

Campaign.fromJson(
  1. Map json_
)

Implementation

Campaign.fromJson(core.Map json_)
    : this(
        advertiserId: json_.containsKey('advertiserId')
            ? json_['advertiserId'] as core.String
            : null,
        campaignBudgets: json_.containsKey('campaignBudgets')
            ? (json_['campaignBudgets'] as core.List)
                .map((value) => CampaignBudget.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        campaignFlight: json_.containsKey('campaignFlight')
            ? CampaignFlight.fromJson(json_['campaignFlight']
                as core.Map<core.String, core.dynamic>)
            : null,
        campaignGoal: json_.containsKey('campaignGoal')
            ? CampaignGoal.fromJson(
                json_['campaignGoal'] as core.Map<core.String, core.dynamic>)
            : null,
        campaignId: json_.containsKey('campaignId')
            ? json_['campaignId'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        entityStatus: json_.containsKey('entityStatus')
            ? json_['entityStatus'] as core.String
            : null,
        frequencyCap: json_.containsKey('frequencyCap')
            ? FrequencyCap.fromJson(
                json_['frequencyCap'] as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );