ShippingRateCurrencyOptionsValue.fromJson constructor
ShippingRateCurrencyOptionsValue.fromJson(
- Object? json
Implementation
factory ShippingRateCurrencyOptionsValue.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return ShippingRateCurrencyOptionsValue(
amount: map['amount'] == null ? null : (map['amount'] as num).toInt(),
taxBehavior: map['tax_behavior'] == null
? null
: ShippingRateCurrencyOptionTaxBehavior.fromJson(map['tax_behavior']),
);
}