SourceTransactionGbpCreditTransferData.fromJson constructor

SourceTransactionGbpCreditTransferData.fromJson(
  1. Object? json
)

Implementation

factory SourceTransactionGbpCreditTransferData.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SourceTransactionGbpCreditTransferData(
    fingerprint:
        map['fingerprint'] == null ? null : (map['fingerprint'] as String),
    fundingMethod: map['funding_method'] == null
        ? null
        : (map['funding_method'] as String),
    last4: map['last4'] == null ? null : (map['last4'] as String),
    reference: map['reference'] == null ? null : (map['reference'] as String),
    senderAccountNumber: map['sender_account_number'] == null
        ? null
        : (map['sender_account_number'] as String),
    senderName:
        map['sender_name'] == null ? null : (map['sender_name'] as String),
    senderSortCode: map['sender_sort_code'] == null
        ? null
        : (map['sender_sort_code'] as String),
  );
}