/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const LearningObjectiveSetLearningObjectiveId$inboundSchema = z.object({
    learningObjectiveId: z.string(),
    score: z.number().optional(),
    textScore: z.string().optional(),
});
/** @internal */
export const LearningObjectiveSetLearningObjectiveId$outboundSchema = z.object({
    learningObjectiveId: z.string(),
    score: z.number().optional(),
    textScore: z.string().optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var LearningObjectiveSetLearningObjectiveId$;
(function (LearningObjectiveSetLearningObjectiveId$) {
    /** @deprecated use `LearningObjectiveSetLearningObjectiveId$inboundSchema` instead. */
    LearningObjectiveSetLearningObjectiveId$.inboundSchema = LearningObjectiveSetLearningObjectiveId$inboundSchema;
    /** @deprecated use `LearningObjectiveSetLearningObjectiveId$outboundSchema` instead. */
    LearningObjectiveSetLearningObjectiveId$.outboundSchema = LearningObjectiveSetLearningObjectiveId$outboundSchema;
})(LearningObjectiveSetLearningObjectiveId$ || (LearningObjectiveSetLearningObjectiveId$ = {}));
export function learningObjectiveSetLearningObjectiveIdToJSON(learningObjectiveSetLearningObjectiveId) {
    return JSON.stringify(LearningObjectiveSetLearningObjectiveId$outboundSchema.parse(learningObjectiveSetLearningObjectiveId));
}
export function learningObjectiveSetLearningObjectiveIdFromJSON(jsonString) {
    return safeParse(jsonString, (x) => LearningObjectiveSetLearningObjectiveId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LearningObjectiveSetLearningObjectiveId' from JSON`);
}
/** @internal */
export const LearningObjectiveSet$inboundSchema = z.object({
    source: z.string(),
    learningObjectiveIds: z.array(z.lazy(() => LearningObjectiveSetLearningObjectiveId$inboundSchema)),
});
/** @internal */
export const LearningObjectiveSet$outboundSchema = z.object({
    source: z.string(),
    learningObjectiveIds: z.array(z.lazy(() => LearningObjectiveSetLearningObjectiveId$outboundSchema)),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var LearningObjectiveSet$;
(function (LearningObjectiveSet$) {
    /** @deprecated use `LearningObjectiveSet$inboundSchema` instead. */
    LearningObjectiveSet$.inboundSchema = LearningObjectiveSet$inboundSchema;
    /** @deprecated use `LearningObjectiveSet$outboundSchema` instead. */
    LearningObjectiveSet$.outboundSchema = LearningObjectiveSet$outboundSchema;
})(LearningObjectiveSet$ || (LearningObjectiveSet$ = {}));
export function learningObjectiveSetToJSON(learningObjectiveSet) {
    return JSON.stringify(LearningObjectiveSet$outboundSchema.parse(learningObjectiveSet));
}
export function learningObjectiveSetFromJSON(jsonString) {
    return safeParse(jsonString, (x) => LearningObjectiveSet$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'LearningObjectiveSet' from JSON`);
}
//# sourceMappingURL=learningobjectiveset.js.map