wallee
Version:
TypeScript/JavaScript client for wallee
38 lines (37 loc) • 1.66 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.instanceOfDocumentTemplateSearchResponse = instanceOfDocumentTemplateSearchResponse;
exports.DocumentTemplateSearchResponseFromJSON = DocumentTemplateSearchResponseFromJSON;
exports.DocumentTemplateSearchResponseFromJSONTyped = DocumentTemplateSearchResponseFromJSONTyped;
exports.DocumentTemplateSearchResponseToJSON = DocumentTemplateSearchResponseToJSON;
exports.DocumentTemplateSearchResponseToJSONTyped = DocumentTemplateSearchResponseToJSONTyped;
const DocumentTemplate_1 = require("./DocumentTemplate");
/**
* Check if a given object implements the DocumentTemplateSearchResponse interface.
*/
function instanceOfDocumentTemplateSearchResponse(value) {
return true;
}
function DocumentTemplateSearchResponseFromJSON(json) {
return DocumentTemplateSearchResponseFromJSONTyped(json, false);
}
function DocumentTemplateSearchResponseFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'data': json['data'] == null ? undefined : (json['data'].map(DocumentTemplate_1.DocumentTemplateFromJSON)),
'offset': json['offset'] == null ? undefined : json['offset'],
'hasMore': json['hasMore'] == null ? undefined : json['hasMore'],
'limit': json['limit'] == null ? undefined : json['limit'],
};
}
function DocumentTemplateSearchResponseToJSON(json) {
return DocumentTemplateSearchResponseToJSONTyped(json, false);
}
function DocumentTemplateSearchResponseToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {};
}