PaymentMethodSepaDebitGeneratedFrom.fromJson constructor

PaymentMethodSepaDebitGeneratedFrom.fromJson(
  1. Object? json
)

Implementation

factory PaymentMethodSepaDebitGeneratedFrom.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return PaymentMethodSepaDebitGeneratedFrom(
    charge: map['charge'] == null ? null : ChargeOrId.fromJson(map['charge']),
    setupAttempt: map['setup_attempt'] == null
        ? null
        : SetupAttemptOrId.fromJson(map['setup_attempt']),
  );
}