wallee
Version:
TypeScript/JavaScript client for wallee
29 lines (28 loc) • 891 B
JavaScript
/**
* Check if a given object implements the BankTransactionType interface.
*/
export function instanceOfBankTransactionType(value) {
return true;
}
export function BankTransactionTypeFromJSON(json) {
return BankTransactionTypeFromJSONTyped(json, false);
}
export function BankTransactionTypeFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'name': json['name'] == null ? undefined : json['name'],
'description': json['description'] == null ? undefined : json['description'],
'id': json['id'] == null ? undefined : json['id'],
};
}
export function BankTransactionTypeToJSON(json) {
return BankTransactionTypeToJSONTyped(json, false);
}
export function BankTransactionTypeToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}