ReturnShipment.fromJson constructor
ReturnShipment.fromJson(
- Map json_
Implementation
ReturnShipment.fromJson(core.Map json_)
: this(
creationDate: json_.containsKey('creationDate')
? json_['creationDate'] as core.String
: null,
deliveryDate: json_.containsKey('deliveryDate')
? json_['deliveryDate'] as core.String
: null,
returnMethodType: json_.containsKey('returnMethodType')
? json_['returnMethodType'] as core.String
: null,
shipmentId: json_.containsKey('shipmentId')
? json_['shipmentId'] as core.String
: null,
shipmentTrackingInfos: json_.containsKey('shipmentTrackingInfos')
? (json_['shipmentTrackingInfos'] as core.List)
.map((value) => ShipmentTrackingInfo.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
shippingDate: json_.containsKey('shippingDate')
? json_['shippingDate'] as core.String
: null,
state:
json_.containsKey('state') ? json_['state'] as core.String : null,
);