wallee
Version:
TypeScript/JavaScript client for wallee
31 lines (30 loc) • 1.19 kB
JavaScript
import { LabelDescriptorGroupFromJSON, } from './LabelDescriptorGroup';
/**
* Check if a given object implements the LabelDescriptorGroupSearchResponse interface.
*/
export function instanceOfLabelDescriptorGroupSearchResponse(value) {
return true;
}
export function LabelDescriptorGroupSearchResponseFromJSON(json) {
return LabelDescriptorGroupSearchResponseFromJSONTyped(json, false);
}
export function LabelDescriptorGroupSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(LabelDescriptorGroupFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
export function LabelDescriptorGroupSearchResponseToJSON(json) {
return LabelDescriptorGroupSearchResponseToJSONTyped(json, false);
}
export function LabelDescriptorGroupSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}