@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
34 lines • 1.03 kB
JavaScript
import { exists } from '../runtime.js';
export var RoleContributesToTypeEnum;
(function (RoleContributesToTypeEnum) {
RoleContributesToTypeEnum["team"] = "team";
})(RoleContributesToTypeEnum || (RoleContributesToTypeEnum = {}));
export function instanceOfRoleContributesTo(value) {
let isInstance = true;
return isInstance;
}
export function RoleContributesToFromJSON(json) {
return RoleContributesToFromJSONTyped(json, false);
}
export function RoleContributesToFromJSONTyped(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 RoleContributesToToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
_id: value._id,
_type: value._type,
};
}
//# sourceMappingURL=RoleContributesTo.js.map