UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

32 lines 1.04 kB
import { GetWATemplatesTemplatesInnerFromJSON, GetWATemplatesTemplatesInnerToJSON } from './GetWATemplatesTemplatesInner.js'; export function instanceOfGetWATemplates(value) { let isInstance = true; isInstance = isInstance && 'templates' in value; isInstance = isInstance && 'count' in value; return isInstance; } export function GetWATemplatesFromJSON(json) { return GetWATemplatesFromJSONTyped(json, false); } export function GetWATemplatesFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { templates: json['templates'].map(GetWATemplatesTemplatesInnerFromJSON), count: json['count'], }; } export function GetWATemplatesToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { templates: value.templates.map(GetWATemplatesTemplatesInnerToJSON), count: value.count, }; } //# sourceMappingURL=GetWATemplates.js.map