UNPKG

wallee

Version:
30 lines (29 loc) 1.1 kB
import { DocumentTemplateTypeFromJSON, } from './DocumentTemplateType'; /** * Check if a given object implements the DocumentTemplateTypeListResponse interface. */ export function instanceOfDocumentTemplateTypeListResponse(value) { return true; } export function DocumentTemplateTypeListResponseFromJSON(json) { return DocumentTemplateTypeListResponseFromJSONTyped(json, false); } export function DocumentTemplateTypeListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(DocumentTemplateTypeFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function DocumentTemplateTypeListResponseToJSON(json) { return DocumentTemplateTypeListResponseToJSONTyped(json, false); } export function DocumentTemplateTypeListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }