wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.75 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfLabelDescriptorGroupSearchResponse = instanceOfLabelDescriptorGroupSearchResponse;
exports.LabelDescriptorGroupSearchResponseFromJSON = LabelDescriptorGroupSearchResponseFromJSON;
exports.LabelDescriptorGroupSearchResponseFromJSONTyped = LabelDescriptorGroupSearchResponseFromJSONTyped;
exports.LabelDescriptorGroupSearchResponseToJSON = LabelDescriptorGroupSearchResponseToJSON;
exports.LabelDescriptorGroupSearchResponseToJSONTyped = LabelDescriptorGroupSearchResponseToJSONTyped;
const LabelDescriptorGroup_1 = require("./LabelDescriptorGroup");
/**
* Check if a given object implements the LabelDescriptorGroupSearchResponse interface.
*/
function instanceOfLabelDescriptorGroupSearchResponse(value) {
return true;
}
function LabelDescriptorGroupSearchResponseFromJSON(json) {
return LabelDescriptorGroupSearchResponseFromJSONTyped(json, false);
}
function LabelDescriptorGroupSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(LabelDescriptorGroup_1.LabelDescriptorGroupFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function LabelDescriptorGroupSearchResponseToJSON(json) {
return LabelDescriptorGroupSearchResponseToJSONTyped(json, false);
}
function LabelDescriptorGroupSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}