PaymentMethodOptionsOxxo.fromJson constructor

PaymentMethodOptionsOxxo.fromJson(
  1. Object? json
)

Implementation

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