SourceMandateNotificationSepaDebitData.fromJson constructor

SourceMandateNotificationSepaDebitData.fromJson(
  1. Object? json
)

Implementation

factory SourceMandateNotificationSepaDebitData.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SourceMandateNotificationSepaDebitData(
    creditorIdentifier: map['creditor_identifier'] == null
        ? null
        : (map['creditor_identifier'] as String),
    last4: map['last4'] == null ? null : (map['last4'] as String),
    mandateReference: map['mandate_reference'] == null
        ? null
        : (map['mandate_reference'] as String),
  );
}