ReceivedCreditInitiatingPaymentMethodDetails.fromJson constructor

ReceivedCreditInitiatingPaymentMethodDetails.fromJson(
  1. Object? json
)

Implementation

factory ReceivedCreditInitiatingPaymentMethodDetails.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return ReceivedCreditInitiatingPaymentMethodDetails(
      usBankAccount: map['us_bank_account'] == null
          ? null
          : ReceivedCreditUsBankAccount.fromJson(map['us_bank_account']));
}