@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
34 lines • 997 B
JavaScript
import { exists } from '../runtime.js';
export var GoalParentGoalTypeEnum;
(function (GoalParentGoalTypeEnum) {
GoalParentGoalTypeEnum["goal"] = "goal";
})(GoalParentGoalTypeEnum || (GoalParentGoalTypeEnum = {}));
export function instanceOfGoalParentGoal(value) {
let isInstance = true;
return isInstance;
}
export function GoalParentGoalFromJSON(json) {
return GoalParentGoalFromJSONTyped(json, false);
}
export function GoalParentGoalFromJSONTyped(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 GoalParentGoalToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
_id: value._id,
_type: value._type,
};
}
//# sourceMappingURL=GoalParentGoal.js.map