Amounts.fromJson constructor
Amounts.fromJson(
- Map<String, dynamic> json
)
Implementation
Amounts.fromJson(Map<String, dynamic> json) {
handlingFee = json['handlingFee'] != null
? UnitPrice.fromJson(json['handlingFee'])
: null;
insurance = json['insurance'] != null
? UnitPrice.fromJson(json['insurance'])
: null;
shippingAndHandling = json['shippingAndHandling'] != null
? UnitPrice.fromJson(json['shippingAndHandling'])
: null;
shippingDiscount = json['shippingDiscount'] != null
? UnitPrice.fromJson(json['shippingDiscount'])
: null;
subtotal =
json['subtotal'] != null ? UnitPrice.fromJson(json['subtotal']) : null;
tax = json['tax'] != null ? UnitPrice.fromJson(json['tax']) : null;
total = json['total'] != null ? UnitPrice.fromJson(json['total']) : null;
}