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