SetupIntentNextActionRedirectToUrl.fromJson constructor

SetupIntentNextActionRedirectToUrl.fromJson(
  1. Object? json
)

Implementation

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