UNPKG

wallee

Version:
30 lines (29 loc) 1.06 kB
import { DocumentTemplateFromJSON, } from './DocumentTemplate'; /** * Check if a given object implements the DocumentTemplateListResponse interface. */ export function instanceOfDocumentTemplateListResponse(value) { return true; } export function DocumentTemplateListResponseFromJSON(json) { return DocumentTemplateListResponseFromJSONTyped(json, false); } export function DocumentTemplateListResponseFromJSONTyped(json, ignoreDiscriminator) { if (json == null) { return json; } return { 'data': json['data'] == null ? undefined : (json['data'].map(DocumentTemplateFromJSON)), 'hasMore': json['hasMore'] == null ? undefined : json['hasMore'], 'limit': json['limit'] == null ? undefined : json['limit'], }; } export function DocumentTemplateListResponseToJSON(json) { return DocumentTemplateListResponseToJSONTyped(json, false); } export function DocumentTemplateListResponseToJSONTyped(value, ignoreDiscriminator = false) { if (value == null) { return value; } return {}; }