UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

29 lines 933 B
import { GetAttributesAttributesInnerFromJSON, GetAttributesAttributesInnerToJSON } from './GetAttributesAttributesInner.js'; export function instanceOfGetAttributes(value) { let isInstance = true; isInstance = isInstance && 'attributes' in value; return isInstance; } export function GetAttributesFromJSON(json) { return GetAttributesFromJSONTyped(json, false); } export function GetAttributesFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { attributes: json['attributes'].map(GetAttributesAttributesInnerFromJSON), }; } export function GetAttributesToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { attributes: value.attributes.map(GetAttributesAttributesInnerToJSON), }; } //# sourceMappingURL=GetAttributes.js.map