wallee
Version:
TypeScript/JavaScript client for wallee
35 lines (34 loc) • 1.55 kB
JavaScript
import { BankTransactionFromJSON, BankTransactionToJSON, } from './BankTransaction';
/**
* Check if a given object implements the InternalTransferBankTransaction interface.
*/
export function instanceOfInternalTransferBankTransaction(value) {
return true;
}
export function InternalTransferBankTransactionFromJSON(json) {
return InternalTransferBankTransactionFromJSONTyped(json, false);
}
export function InternalTransferBankTransactionFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'sourceBankTransaction': json['sourceBankTransaction'] == null ? undefined : BankTransactionFromJSON(json['sourceBankTransaction']),
'linkedSpaceId': json['linkedSpaceId'] == null ? undefined : json['linkedSpaceId'],
'targetBankTransaction': json['targetBankTransaction'] == null ? undefined : BankTransactionFromJSON(json['targetBankTransaction']),
'id': json['id'] == null ? undefined : json['id'],
'version': json['version'] == null ? undefined : json['version'],
};
}
export function InternalTransferBankTransactionToJSON(json) {
return InternalTransferBankTransactionToJSONTyped(json, false);
}
export function InternalTransferBankTransactionToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'sourceBankTransaction': BankTransactionToJSON(value['sourceBankTransaction']),
'targetBankTransaction': BankTransactionToJSON(value['targetBankTransaction']),
};
}