LineItem.fromJson constructor
LineItem.fromJson(
- Map json_
Implementation
LineItem.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,
budget: json_.containsKey('budget')
? LineItemBudget.fromJson(
json_['budget'] as core.Map<core.String, core.dynamic>)
: null,
campaignId: json_.containsKey('campaignId')
? json_['campaignId'] as core.String
: null,
conversionCounting: json_.containsKey('conversionCounting')
? ConversionCountingConfig.fromJson(json_['conversionCounting']
as core.Map<core.String, core.dynamic>)
: null,
creativeIds: json_.containsKey('creativeIds')
? (json_['creativeIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
entityStatus: json_.containsKey('entityStatus')
? json_['entityStatus'] as core.String
: null,
excludeNewExchanges: json_.containsKey('excludeNewExchanges')
? json_['excludeNewExchanges'] as core.bool
: null,
flight: json_.containsKey('flight')
? LineItemFlight.fromJson(
json_['flight'] as core.Map<core.String, core.dynamic>)
: 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,
integrationDetails: json_.containsKey('integrationDetails')
? IntegrationDetails.fromJson(json_['integrationDetails']
as core.Map<core.String, core.dynamic>)
: null,
lineItemId: json_.containsKey('lineItemId')
? json_['lineItemId'] as core.String
: null,
lineItemType: json_.containsKey('lineItemType')
? json_['lineItemType'] as core.String
: null,
mobileApp: json_.containsKey('mobileApp')
? MobileApp.fromJson(
json_['mobileApp'] 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,
partnerRevenueModel: json_.containsKey('partnerRevenueModel')
? PartnerRevenueModel.fromJson(json_['partnerRevenueModel']
as core.Map<core.String, core.dynamic>)
: null,
reservationType: json_.containsKey('reservationType')
? json_['reservationType'] as core.String
: null,
targetingExpansion: json_.containsKey('targetingExpansion')
? TargetingExpansionConfig.fromJson(json_['targetingExpansion']
as core.Map<core.String, core.dynamic>)
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
warningMessages: json_.containsKey('warningMessages')
? (json_['warningMessages'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
youtubeAndPartnersSettings:
json_.containsKey('youtubeAndPartnersSettings')
? YoutubeAndPartnersSettings.fromJson(
json_['youtubeAndPartnersSettings']
as core.Map<core.String, core.dynamic>)
: null,
);