UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

38 lines 1.11 kB
import { exists } from '../runtime.js'; export var ObjectRefTypeEnum; (function (ObjectRefTypeEnum) { ObjectRefTypeEnum["team"] = "team"; ObjectRefTypeEnum["role"] = "role"; ObjectRefTypeEnum["user"] = "user"; ObjectRefTypeEnum["goal"] = "goal"; ObjectRefTypeEnum["agreement"] = "agreement"; })(ObjectRefTypeEnum || (ObjectRefTypeEnum = {})); export function instanceOfObjectRef(value) { let isInstance = true; return isInstance; } export function ObjectRefFromJSON(json) { return ObjectRefFromJSONTyped(json, false); } export function ObjectRefFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { _id: !exists(json, '_id') ? undefined : json['_id'], _type: !exists(json, '_type') ? undefined : json['_type'], }; } export function ObjectRefToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { _id: value._id, _type: value._type, }; } //# sourceMappingURL=ObjectRef.js.map