wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 957 B
JavaScript
import { AccountFromJSON, } from './Account';
/**
* Check if a given object implements the AccountListResponse interface.
*/
export function instanceOfAccountListResponse(value) {
return true;
}
export function AccountListResponseFromJSON(json) {
return AccountListResponseFromJSONTyped(json, false);
}
export function AccountListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(AccountFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function AccountListResponseToJSON(json) {
return AccountListResponseToJSONTyped(json, false);
}
export function AccountListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}