/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const QuizUpdateStudentQuestionResponseResult$inboundSchema = z.object({
    questionResult: z.any().optional(),
    lessonType: z.literal("quiz").default("quiz").optional(),
});
/** @internal */
export const QuizUpdateStudentQuestionResponseResult$outboundSchema = z.object({
    questionResult: z.any().optional(),
    lessonType: z.literal("quiz").default("quiz"),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var QuizUpdateStudentQuestionResponseResult$;
(function (QuizUpdateStudentQuestionResponseResult$) {
    /** @deprecated use `QuizUpdateStudentQuestionResponseResult$inboundSchema` instead. */
    QuizUpdateStudentQuestionResponseResult$.inboundSchema = QuizUpdateStudentQuestionResponseResult$inboundSchema;
    /** @deprecated use `QuizUpdateStudentQuestionResponseResult$outboundSchema` instead. */
    QuizUpdateStudentQuestionResponseResult$.outboundSchema = QuizUpdateStudentQuestionResponseResult$outboundSchema;
})(QuizUpdateStudentQuestionResponseResult$ || (QuizUpdateStudentQuestionResponseResult$ = {}));
export function quizUpdateStudentQuestionResponseResultToJSON(quizUpdateStudentQuestionResponseResult) {
    return JSON.stringify(QuizUpdateStudentQuestionResponseResult$outboundSchema.parse(quizUpdateStudentQuestionResponseResult));
}
export function quizUpdateStudentQuestionResponseResultFromJSON(jsonString) {
    return safeParse(jsonString, (x) => QuizUpdateStudentQuestionResponseResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'QuizUpdateStudentQuestionResponseResult' from JSON`);
}
//# sourceMappingURL=quizupdatestudentquestionresponseresult.js.map