PaymentIntentCreateOptionsPaymentMethodOptionsUsBankAccountMandateOptions.fromJson constructor

PaymentIntentCreateOptionsPaymentMethodOptionsUsBankAccountMandateOptions.fromJson(
  1. Object? json
)

Implementation

factory PaymentIntentCreateOptionsPaymentMethodOptionsUsBankAccountMandateOptions.fromJson(
    Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentIntentCreateOptionsPaymentMethodOptionsUsBankAccountMandateOptions(
      collectionMethod: map['collection_method'] == null
          ? null
          : PaymentIntentCollectionMethod.fromJson(map['collection_method']));
}