Order.fromJson constructor
Order.fromJson(
- Map json_
Implementation
Order.fromJson(core.Map json_)
: this(
accountId: json_.containsKey('accountId')
? json_['accountId'] as core.String
: null,
advertiserId: json_.containsKey('advertiserId')
? json_['advertiserId'] as core.String
: null,
approverUserProfileIds: json_.containsKey('approverUserProfileIds')
? (json_['approverUserProfileIds'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
buyerInvoiceId: json_.containsKey('buyerInvoiceId')
? json_['buyerInvoiceId'] as core.String
: null,
buyerOrganizationName: json_.containsKey('buyerOrganizationName')
? json_['buyerOrganizationName'] as core.String
: null,
comments: json_.containsKey('comments')
? json_['comments'] as core.String
: null,
contacts: json_.containsKey('contacts')
? (json_['contacts'] as core.List)
.map((value) => OrderContact.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
id: json_.containsKey('id') ? json_['id'] as core.String : 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,
notes:
json_.containsKey('notes') ? json_['notes'] as core.String : null,
planningTermId: json_.containsKey('planningTermId')
? json_['planningTermId'] as core.String
: null,
projectId: json_.containsKey('projectId')
? json_['projectId'] as core.String
: null,
sellerOrderId: json_.containsKey('sellerOrderId')
? json_['sellerOrderId'] as core.String
: null,
sellerOrganizationName: json_.containsKey('sellerOrganizationName')
? json_['sellerOrganizationName'] as core.String
: null,
siteId: json_.containsKey('siteId')
? (json_['siteId'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
siteNames: json_.containsKey('siteNames')
? (json_['siteNames'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
subaccountId: json_.containsKey('subaccountId')
? json_['subaccountId'] as core.String
: null,
termsAndConditions: json_.containsKey('termsAndConditions')
? json_['termsAndConditions'] as core.String
: null,
);