wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 968 B
JavaScript
import { CustomerFromJSON, } from './Customer';
/**
* Check if a given object implements the CustomerListResponse interface.
*/
export function instanceOfCustomerListResponse(value) {
return true;
}
export function CustomerListResponseFromJSON(json) {
return CustomerListResponseFromJSONTyped(json, false);
}
export function CustomerListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(CustomerFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function CustomerListResponseToJSON(json) {
return CustomerListResponseToJSONTyped(json, false);
}
export function CustomerListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}