wallee
Version:
TypeScript/JavaScript client for wallee
30 lines (29 loc) • 1.1 kB
JavaScript
import { LabelDescriptorGroupFromJSON, } from './LabelDescriptorGroup';
/**
* Check if a given object implements the LabelDescriptorGroupListResponse interface.
*/
export function instanceOfLabelDescriptorGroupListResponse(value) {
return true;
}
export function LabelDescriptorGroupListResponseFromJSON(json) {
return LabelDescriptorGroupListResponseFromJSONTyped(json, false);
}
export function LabelDescriptorGroupListResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(LabelDescriptorGroupFromJSON)),
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function LabelDescriptorGroupListResponseToJSON(json) {
return LabelDescriptorGroupListResponseToJSONTyped(json, false);
}
export function LabelDescriptorGroupListResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}