UNPKG

wallee

Version:
36 lines (35 loc) 1.4 kB
import { DocumentTemplateTypeGroupFromJSON, DocumentTemplateTypeGroupToJSON, } from './DocumentTemplateTypeGroup'; import { FeatureFromJSON, FeatureToJSON, } from './Feature'; /** * Check if a given object implements the DocumentTemplateType interface. */ export function instanceOfDocumentTemplateType(value) { return true; } export function DocumentTemplateTypeFromJSON(json) { return DocumentTemplateTypeFromJSONTyped(json, false); } export function DocumentTemplateTypeFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'feature': json['feature'] == null ? undefined : 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 : DocumentTemplateTypeGroupFromJSON(json['group']), }; } export function DocumentTemplateTypeToJSON(json) { return DocumentTemplateTypeToJSONTyped(json, false); } export function DocumentTemplateTypeToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return { 'feature': FeatureToJSON(value['feature']), 'group': DocumentTemplateTypeGroupToJSON(value['group']), }; }