SourceTransactionChfCreditTransferData.fromJson constructor

SourceTransactionChfCreditTransferData.fromJson(
  1. Object? json
)

Implementation

factory SourceTransactionChfCreditTransferData.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SourceTransactionChfCreditTransferData(
    reference: map['reference'] == null ? null : (map['reference'] as String),
    senderAddressCountry: map['sender_address_country'] == null
        ? null
        : (map['sender_address_country'] as String),
    senderAddressLine1: map['sender_address_line1'] == null
        ? null
        : (map['sender_address_line1'] as String),
    senderIban:
        map['sender_iban'] == null ? null : (map['sender_iban'] as String),
    senderName:
        map['sender_name'] == null ? null : (map['sender_name'] as String),
  );
}