ShippingRateCurrencyOption.fromJson constructor

ShippingRateCurrencyOption.fromJson(
  1. Object? json
)

Implementation

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