PaymentIntentNextActionRedirectToUrl.fromJson constructor

PaymentIntentNextActionRedirectToUrl.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentNextActionRedirectToUrl.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentNextActionRedirectToUrl(
    returnUrl:
        map['return_url'] == null ? null : (map['return_url'] as String),
    url: map['url'] == null ? null : (map['url'] as String),
  );
}