MandateBacsDebit.fromJson constructor
MandateBacsDebit.fromJson(
- Object? json
Implementation
factory MandateBacsDebit.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return MandateBacsDebit(
networkStatus:
MandateBacsDebitNetworkStatus.fromJson(map['network_status']),
reference: (map['reference'] as String),
revocationReason: map['revocation_reason'] == null
? null
: MandateBacsDebitRevocationReason.fromJson(map['revocation_reason']),
url: (map['url'] as String),
);
}