SessionCurrencyOptionsValue.fromJson constructor

SessionCurrencyOptionsValue.fromJson(
  1. Object? json
)

Implementation

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