InventoryItem.fromJson constructor
InventoryItem.fromJson(
- Map json_
Implementation
InventoryItem.fromJson(core.Map json_)
: this(
accountId: json_.containsKey('accountId')
? json_['accountId'] as core.String
: null,
adSlots: json_.containsKey('adSlots')
? (json_['adSlots'] as core.List)
.map((value) => AdSlot.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
advertiserId: json_.containsKey('advertiserId')
? json_['advertiserId'] as core.String
: null,
contentCategoryId: json_.containsKey('contentCategoryId')
? json_['contentCategoryId'] as core.String
: null,
estimatedClickThroughRate:
json_.containsKey('estimatedClickThroughRate')
? json_['estimatedClickThroughRate'] as core.String
: null,
estimatedConversionRate: json_.containsKey('estimatedConversionRate')
? json_['estimatedConversionRate'] as core.String
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : null,
inPlan:
json_.containsKey('inPlan') ? json_['inPlan'] as core.bool : null,
kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
lastModifiedInfo: json_.containsKey('lastModifiedInfo')
? LastModifiedInfo.fromJson(json_['lastModifiedInfo']
as core.Map<core.String, core.dynamic>)
: null,
name: json_.containsKey('name') ? json_['name'] as core.String : null,
negotiationChannelId: json_.containsKey('negotiationChannelId')
? json_['negotiationChannelId'] as core.String
: null,
orderId: json_.containsKey('orderId')
? json_['orderId'] as core.String
: null,
placementStrategyId: json_.containsKey('placementStrategyId')
? json_['placementStrategyId'] as core.String
: null,
pricing: json_.containsKey('pricing')
? Pricing.fromJson(
json_['pricing'] as core.Map<core.String, core.dynamic>)
: null,
projectId: json_.containsKey('projectId')
? json_['projectId'] as core.String
: null,
rfpId:
json_.containsKey('rfpId') ? json_['rfpId'] as core.String : null,
siteId: json_.containsKey('siteId')
? json_['siteId'] as core.String
: null,
subaccountId: json_.containsKey('subaccountId')
? json_['subaccountId'] as core.String
: null,
type: json_.containsKey('type') ? json_['type'] as core.String : null,
);