UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

31 lines 981 B
import { exists } from '../runtime.js'; import { GetSegmentsSegmentsFromJSON, GetSegmentsSegmentsToJSON } from './GetSegmentsSegments.js'; export function instanceOfGetSegments(value) { let isInstance = true; return isInstance; } export function GetSegmentsFromJSON(json) { return GetSegmentsFromJSONTyped(json, false); } export function GetSegmentsFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { segments: !exists(json, 'segments') ? undefined : GetSegmentsSegmentsFromJSON(json['segments']), count: !exists(json, 'count') ? undefined : json['count'], }; } export function GetSegmentsToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { segments: GetSegmentsSegmentsToJSON(value.segments), count: value.count, }; } //# sourceMappingURL=GetSegments.js.map