UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

30 lines 819 B
import { exists } from '../runtime.js'; export function instanceOfComponentItems(value) { let isInstance = true; return isInstance; } export function ComponentItemsFromJSON(json) { return ComponentItemsFromJSONTyped(json, false); } export function ComponentItemsFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { type: !exists(json, 'type') ? undefined : json['type'], text: !exists(json, 'text') ? undefined : json['text'], }; } export function ComponentItemsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { type: value.type, text: value.text, }; } //# sourceMappingURL=ComponentItems.js.map