UNPKG

wallee

Version:
38 lines (37 loc) 1.75 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfDocumentTemplateTypeSearchResponse = instanceOfDocumentTemplateTypeSearchResponse; exports.DocumentTemplateTypeSearchResponseFromJSON = DocumentTemplateTypeSearchResponseFromJSON; exports.DocumentTemplateTypeSearchResponseFromJSONTyped = DocumentTemplateTypeSearchResponseFromJSONTyped; exports.DocumentTemplateTypeSearchResponseToJSON = DocumentTemplateTypeSearchResponseToJSON; exports.DocumentTemplateTypeSearchResponseToJSONTyped = DocumentTemplateTypeSearchResponseToJSONTyped; const DocumentTemplateType_1 = require("./DocumentTemplateType"); /** * Check if a given object implements the DocumentTemplateTypeSearchResponse interface. */ function instanceOfDocumentTemplateTypeSearchResponse(value) { return true; } function DocumentTemplateTypeSearchResponseFromJSON(json) { return DocumentTemplateTypeSearchResponseFromJSONTyped(json, false); } function DocumentTemplateTypeSearchResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(DocumentTemplateType_1.DocumentTemplateTypeFromJSON)), 'offset': json['offset'] == null ? undefined : json['offset'], 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } function DocumentTemplateTypeSearchResponseToJSON(json) { return DocumentTemplateTypeSearchResponseToJSONTyped(json, false); } function DocumentTemplateTypeSearchResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }