UNPKG

wallee

Version:
43 lines (42 loc) 1.83 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.instanceOfDocumentTemplateType = instanceOfDocumentTemplateType; exports.DocumentTemplateTypeFromJSON = DocumentTemplateTypeFromJSON; exports.DocumentTemplateTypeFromJSONTyped = DocumentTemplateTypeFromJSONTyped; exports.DocumentTemplateTypeToJSON = DocumentTemplateTypeToJSON; exports.DocumentTemplateTypeToJSONTyped = DocumentTemplateTypeToJSONTyped; const DocumentTemplateTypeGroup_1 = require("./DocumentTemplateTypeGroup"); const Feature_1 = require("./Feature"); /** * Check if a given object implements the DocumentTemplateType interface. */ function instanceOfDocumentTemplateType(value) { return true; } function DocumentTemplateTypeFromJSON(json) { return DocumentTemplateTypeFromJSONTyped(json, false); } function DocumentTemplateTypeFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'feature': json['feature'] == null ? undefined : (0, Feature_1.FeatureFromJSON)(json['feature']), 'description': json['description'] == null ? undefined : json['description'], 'id': json['id'] == null ? undefined : json['id'], 'title': json['title'] == null ? undefined : json['title'], 'group': json['group'] == null ? undefined : (0, DocumentTemplateTypeGroup_1.DocumentTemplateTypeGroupFromJSON)(json['group']), }; } function DocumentTemplateTypeToJSON(json) { return DocumentTemplateTypeToJSONTyped(json, false); } function DocumentTemplateTypeToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'feature': (0, Feature_1.FeatureToJSON)(value['feature']), 'group': (0, DocumentTemplateTypeGroup_1.DocumentTemplateTypeGroupToJSON)(value['group']), }; }