SetupIntentPaymentMethodOptionsLink.fromJson constructor

SetupIntentPaymentMethodOptionsLink.fromJson(
  1. Object? json
)

Implementation

factory SetupIntentPaymentMethodOptionsLink.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SetupIntentPaymentMethodOptionsLink(
      persistentToken: map['persistent_token'] == null
          ? null
          : (map['persistent_token'] as String));
}