Deal.fromJson constructor
Deal.fromJson(
- Map json_
Implementation
Deal.fromJson(core.Map json_)
: this(
billedBuyer: json_.containsKey('billedBuyer')
? json_['billedBuyer'] as core.String
: null,
buyer:
json_.containsKey('buyer') ? json_['buyer'] as core.String : null,
client: json_.containsKey('client')
? json_['client'] as core.String
: null,
createTime: json_.containsKey('createTime')
? json_['createTime'] as core.String
: null,
creativeRequirements: json_.containsKey('creativeRequirements')
? CreativeRequirements.fromJson(json_['creativeRequirements']
as core.Map<core.String, core.dynamic>)
: null,
dealType: json_.containsKey('dealType')
? json_['dealType'] as core.String
: null,
deliveryControl: json_.containsKey('deliveryControl')
? DeliveryControl.fromJson(json_['deliveryControl']
as core.Map<core.String, core.dynamic>)
: null,
description: json_.containsKey('description')
? json_['description'] as core.String
: null,
displayName: json_.containsKey('displayName')
? json_['displayName'] as core.String
: null,
eligibleSeatIds: json_.containsKey('eligibleSeatIds')
? (json_['eligibleSeatIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
estimatedGrossSpend: json_.containsKey('estimatedGrossSpend')
? Money.fromJson(json_['estimatedGrossSpend']
as core.Map<core.String, core.dynamic>)
: null,
flightEndTime: json_.containsKey('flightEndTime')
? json_['flightEndTime'] as core.String
: null,
flightStartTime: json_.containsKey('flightStartTime')
? json_['flightStartTime'] as core.String
: null,
mediaPlanner: json_.containsKey('mediaPlanner')
? MediaPlanner.fromJson(
json_['mediaPlanner'] as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
preferredDealTerms: json_.containsKey('preferredDealTerms')
? PreferredDealTerms.fromJson(json_['preferredDealTerms']
as core.Map<core.String, core.dynamic>)
: null,
privateAuctionTerms: json_.containsKey('privateAuctionTerms')
? PrivateAuctionTerms.fromJson(json_['privateAuctionTerms']
as core.Map<core.String, core.dynamic>)
: null,
programmaticGuaranteedTerms:
json_.containsKey('programmaticGuaranteedTerms')
? ProgrammaticGuaranteedTerms.fromJson(
json_['programmaticGuaranteedTerms']
as core.Map<core.String, core.dynamic>)
: null,
proposalRevision: json_.containsKey('proposalRevision')
? json_['proposalRevision'] as core.String
: null,
publisherProfile: json_.containsKey('publisherProfile')
? json_['publisherProfile'] as core.String
: null,
sellerTimeZone: json_.containsKey('sellerTimeZone')
? TimeZone.fromJson(json_['sellerTimeZone']
as core.Map<core.String, core.dynamic>)
: null,
targeting: json_.containsKey('targeting')
? MarketplaceTargeting.fromJson(
json_['targeting'] as core.Map<core.String, core.dynamic>)
: null,
updateTime: json_.containsKey('updateTime')
? json_['updateTime'] as core.String
: null,
);