CheckoutOxxoPaymentMethodOptions.fromJson constructor

CheckoutOxxoPaymentMethodOptions.fromJson(
  1. Object? json
)

Implementation

factory CheckoutOxxoPaymentMethodOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CheckoutOxxoPaymentMethodOptions(
      expiresAfterDays: (map['expires_after_days'] as num).toInt());
}