ShippingDetails.fromJson constructor
ShippingDetails.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ShippingDetails.fromJson(Map<String, dynamic> json) {
return ShippingDetails(
inboundShipment: json['InboundShipment'] != null
? Shipment.fromJson(json['InboundShipment'] as Map<String, dynamic>)
: null,
outboundShipment: json['OutboundShipment'] != null
? Shipment.fromJson(json['OutboundShipment'] as Map<String, dynamic>)
: null,
shippingOption: (json['ShippingOption'] as String?)?.toShippingOption(),
);
}