OrderTrackingSignal.fromJson constructor
OrderTrackingSignal.fromJson(
- Map json_
Implementation
OrderTrackingSignal.fromJson(core.Map json_)
: this(
customerShippingFee: json_.containsKey('customerShippingFee')
? PriceAmount.fromJson(json_['customerShippingFee']
as core.Map<core.String, core.dynamic>)
: null,
deliveryPostalCode: json_.containsKey('deliveryPostalCode')
? json_['deliveryPostalCode'] as core.String
: null,
deliveryRegionCode: json_.containsKey('deliveryRegionCode')
? json_['deliveryRegionCode'] as core.String
: null,
lineItems: json_.containsKey('lineItems')
? (json_['lineItems'] as core.List)
.map((value) => OrderTrackingSignalLineItemDetails.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
merchantId: json_.containsKey('merchantId')
? json_['merchantId'] as core.String
: null,
orderCreatedTime: json_.containsKey('orderCreatedTime')
? DateTime.fromJson(json_['orderCreatedTime']
as core.Map<core.String, core.dynamic>)
: null,
orderId: json_.containsKey('orderId')
? json_['orderId'] as core.String
: null,
orderTrackingSignalId: json_.containsKey('orderTrackingSignalId')
? json_['orderTrackingSignalId'] as core.String
: null,
shipmentLineItemMapping: json_.containsKey('shipmentLineItemMapping')
? (json_['shipmentLineItemMapping'] as core.List)
.map((value) =>
OrderTrackingSignalShipmentLineItemMapping.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
shippingInfo: json_.containsKey('shippingInfo')
? (json_['shippingInfo'] as core.List)
.map((value) => OrderTrackingSignalShippingInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
);