wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.09 kB
JavaScript
import { CurrencyBankAccountFromJSON, } from './CurrencyBankAccount';
/**
* Check if a given object implements the CurrencyBankAccountListResponse interface.
*/
export function instanceOfCurrencyBankAccountListResponse(value) {
return true;
}
export function CurrencyBankAccountListResponseFromJSON(json) {
return CurrencyBankAccountListResponseFromJSONTyped(json, false);
}
export function CurrencyBankAccountListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(CurrencyBankAccountFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function CurrencyBankAccountListResponseToJSON(json) {
return CurrencyBankAccountListResponseToJSONTyped(json, false);
}
export function CurrencyBankAccountListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}