InsertionOrder.fromJson constructor

InsertionOrder.fromJson(
  1. Map json_
)

Implementation

InsertionOrder.fromJson(core.Map json_)
    : this(
        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,
        billableOutcome: json_.containsKey('billableOutcome')
            ? json_['billableOutcome'] as core.String
            : null,
        budget: json_.containsKey('budget')
            ? InsertionOrderBudget.fromJson(
                json_['budget'] 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,
        insertionOrderId: json_.containsKey('insertionOrderId')
            ? json_['insertionOrderId'] as core.String
            : null,
        insertionOrderType: json_.containsKey('insertionOrderType')
            ? json_['insertionOrderType'] as core.String
            : 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,
        pacing: json_.containsKey('pacing')
            ? Pacing.fromJson(
                json_['pacing'] as core.Map<core.String, core.dynamic>)
            : null,
        partnerCosts: json_.containsKey('partnerCosts')
            ? (json_['partnerCosts'] as core.List)
                .map((value) => PartnerCost.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        performanceGoal: json_.containsKey('performanceGoal')
            ? PerformanceGoal.fromJson(json_['performanceGoal']
                as core.Map<core.String, core.dynamic>)
            : null,
        reservationType: json_.containsKey('reservationType')
            ? json_['reservationType'] as core.String
            : null,
        updateTime: json_.containsKey('updateTime')
            ? json_['updateTime'] as core.String
            : null,
      );