/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/**
 * The order to sort the response by
 */
export const GetStudentsForClassInSchoolOrderBy = {
    Asc: "asc",
    Desc: "desc",
};
export const GetStudentsForClassInSchoolStatus = {
    Active: "active",
    Tobedeleted: "tobedeleted",
};
export const GetStudentsForClassInSchoolRoleType = {
    Primary: "primary",
    Secondary: "secondary",
};
export const GetStudentsForClassInSchoolRoleEnum = {
    Administrator: "administrator",
    Aide: "aide",
    Guardian: "guardian",
    Parent: "parent",
    Proctor: "proctor",
    Relative: "relative",
    Student: "student",
    Teacher: "teacher",
};
export const GetStudentsForClassInSchoolType = {
    AcademicSession: "academicSession",
    AssessmentLineItem: "assessmentLineItem",
    Category: "category",
    Class: "class",
    Course: "course",
    Demographics: "demographics",
    Enrollment: "enrollment",
    GradingPeriod: "gradingPeriod",
    LineItem: "lineItem",
    Org: "org",
    Resource: "resource",
    Result: "result",
    ScoreScale: "scoreScale",
    Student: "student",
    Teacher: "teacher",
    Term: "term",
    User: "user",
    ComponentResource: "componentResource",
    CourseComponent: "courseComponent",
};
/** @internal */
export const GetStudentsForClassInSchoolOrderBy$inboundSchema = z.nativeEnum(GetStudentsForClassInSchoolOrderBy);
/** @internal */
export const GetStudentsForClassInSchoolOrderBy$outboundSchema = GetStudentsForClassInSchoolOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolOrderBy$;
(function (GetStudentsForClassInSchoolOrderBy$) {
    /** @deprecated use `GetStudentsForClassInSchoolOrderBy$inboundSchema` instead. */
    GetStudentsForClassInSchoolOrderBy$.inboundSchema = GetStudentsForClassInSchoolOrderBy$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolOrderBy$outboundSchema` instead. */
    GetStudentsForClassInSchoolOrderBy$.outboundSchema = GetStudentsForClassInSchoolOrderBy$outboundSchema;
})(GetStudentsForClassInSchoolOrderBy$ || (GetStudentsForClassInSchoolOrderBy$ = {}));
/** @internal */
export const GetStudentsForClassInSchoolRequest$inboundSchema = z.object({
    schoolSourcedId: z.string(),
    classSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetStudentsForClassInSchoolOrderBy$inboundSchema.optional(),
    filter: z.string().optional(),
    search: z.string().optional(),
});
/** @internal */
export const GetStudentsForClassInSchoolRequest$outboundSchema = z.object({
    schoolSourcedId: z.string(),
    classSourcedId: z.string(),
    fields: z.string().optional(),
    limit: z.number().int().default(100),
    offset: z.number().int().default(0),
    sort: z.string().optional(),
    orderBy: GetStudentsForClassInSchoolOrderBy$outboundSchema.optional(),
    filter: z.string().optional(),
    search: 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 GetStudentsForClassInSchoolRequest$;
(function (GetStudentsForClassInSchoolRequest$) {
    /** @deprecated use `GetStudentsForClassInSchoolRequest$inboundSchema` instead. */
    GetStudentsForClassInSchoolRequest$.inboundSchema = GetStudentsForClassInSchoolRequest$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolRequest$outboundSchema` instead. */
    GetStudentsForClassInSchoolRequest$.outboundSchema = GetStudentsForClassInSchoolRequest$outboundSchema;
})(GetStudentsForClassInSchoolRequest$ || (GetStudentsForClassInSchoolRequest$ = {}));
export function getStudentsForClassInSchoolRequestToJSON(getStudentsForClassInSchoolRequest) {
    return JSON.stringify(GetStudentsForClassInSchoolRequest$outboundSchema.parse(getStudentsForClassInSchoolRequest));
}
export function getStudentsForClassInSchoolRequestFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStudentsForClassInSchoolRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolRequest' from JSON`);
}
/** @internal */
export const GetStudentsForClassInSchoolStatus$inboundSchema = z.nativeEnum(GetStudentsForClassInSchoolStatus);
/** @internal */
export const GetStudentsForClassInSchoolStatus$outboundSchema = GetStudentsForClassInSchoolStatus$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolStatus$;
(function (GetStudentsForClassInSchoolStatus$) {
    /** @deprecated use `GetStudentsForClassInSchoolStatus$inboundSchema` instead. */
    GetStudentsForClassInSchoolStatus$.inboundSchema = GetStudentsForClassInSchoolStatus$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolStatus$outboundSchema` instead. */
    GetStudentsForClassInSchoolStatus$.outboundSchema = GetStudentsForClassInSchoolStatus$outboundSchema;
})(GetStudentsForClassInSchoolStatus$ || (GetStudentsForClassInSchoolStatus$ = {}));
/** @internal */
export const GetStudentsForClassInSchoolUserId$inboundSchema = z.object({
    type: z.string(),
    identifier: z.string(),
});
/** @internal */
export const GetStudentsForClassInSchoolUserId$outboundSchema = z.object({
    type: z.string(),
    identifier: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolUserId$;
(function (GetStudentsForClassInSchoolUserId$) {
    /** @deprecated use `GetStudentsForClassInSchoolUserId$inboundSchema` instead. */
    GetStudentsForClassInSchoolUserId$.inboundSchema = GetStudentsForClassInSchoolUserId$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolUserId$outboundSchema` instead. */
    GetStudentsForClassInSchoolUserId$.outboundSchema = GetStudentsForClassInSchoolUserId$outboundSchema;
})(GetStudentsForClassInSchoolUserId$ || (GetStudentsForClassInSchoolUserId$ = {}));
export function getStudentsForClassInSchoolUserIdToJSON(getStudentsForClassInSchoolUserId) {
    return JSON.stringify(GetStudentsForClassInSchoolUserId$outboundSchema.parse(getStudentsForClassInSchoolUserId));
}
export function getStudentsForClassInSchoolUserIdFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStudentsForClassInSchoolUserId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolUserId' from JSON`);
}
/** @internal */
export const GetStudentsForClassInSchoolRoleType$inboundSchema = z.nativeEnum(GetStudentsForClassInSchoolRoleType);
/** @internal */
export const GetStudentsForClassInSchoolRoleType$outboundSchema = GetStudentsForClassInSchoolRoleType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolRoleType$;
(function (GetStudentsForClassInSchoolRoleType$) {
    /** @deprecated use `GetStudentsForClassInSchoolRoleType$inboundSchema` instead. */
    GetStudentsForClassInSchoolRoleType$.inboundSchema = GetStudentsForClassInSchoolRoleType$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolRoleType$outboundSchema` instead. */
    GetStudentsForClassInSchoolRoleType$.outboundSchema = GetStudentsForClassInSchoolRoleType$outboundSchema;
})(GetStudentsForClassInSchoolRoleType$ || (GetStudentsForClassInSchoolRoleType$ = {}));
/** @internal */
export const GetStudentsForClassInSchoolRoleEnum$inboundSchema = z.nativeEnum(GetStudentsForClassInSchoolRoleEnum);
/** @internal */
export const GetStudentsForClassInSchoolRoleEnum$outboundSchema = GetStudentsForClassInSchoolRoleEnum$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolRoleEnum$;
(function (GetStudentsForClassInSchoolRoleEnum$) {
    /** @deprecated use `GetStudentsForClassInSchoolRoleEnum$inboundSchema` instead. */
    GetStudentsForClassInSchoolRoleEnum$.inboundSchema = GetStudentsForClassInSchoolRoleEnum$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolRoleEnum$outboundSchema` instead. */
    GetStudentsForClassInSchoolRoleEnum$.outboundSchema = GetStudentsForClassInSchoolRoleEnum$outboundSchema;
})(GetStudentsForClassInSchoolRoleEnum$ || (GetStudentsForClassInSchoolRoleEnum$ = {}));
/** @internal */
export const GetStudentsForClassInSchoolOrg$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/** @internal */
export const GetStudentsForClassInSchoolOrg$outboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolOrg$;
(function (GetStudentsForClassInSchoolOrg$) {
    /** @deprecated use `GetStudentsForClassInSchoolOrg$inboundSchema` instead. */
    GetStudentsForClassInSchoolOrg$.inboundSchema = GetStudentsForClassInSchoolOrg$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolOrg$outboundSchema` instead. */
    GetStudentsForClassInSchoolOrg$.outboundSchema = GetStudentsForClassInSchoolOrg$outboundSchema;
})(GetStudentsForClassInSchoolOrg$ || (GetStudentsForClassInSchoolOrg$ = {}));
export function getStudentsForClassInSchoolOrgToJSON(getStudentsForClassInSchoolOrg) {
    return JSON.stringify(GetStudentsForClassInSchoolOrg$outboundSchema.parse(getStudentsForClassInSchoolOrg));
}
export function getStudentsForClassInSchoolOrgFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStudentsForClassInSchoolOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolOrg' from JSON`);
}
/** @internal */
export const GetStudentsForClassInSchoolRole$inboundSchema = z.object({
    roleType: GetStudentsForClassInSchoolRoleType$inboundSchema,
    role: GetStudentsForClassInSchoolRoleEnum$inboundSchema,
    org: z.lazy(() => GetStudentsForClassInSchoolOrg$inboundSchema),
    userProfile: z.string().optional(),
    beginDate: z.nullable(z.string()),
    endDate: z.nullable(z.string()),
});
/** @internal */
export const GetStudentsForClassInSchoolRole$outboundSchema = z.object({
    roleType: GetStudentsForClassInSchoolRoleType$outboundSchema,
    role: GetStudentsForClassInSchoolRoleEnum$outboundSchema,
    org: z.lazy(() => GetStudentsForClassInSchoolOrg$outboundSchema),
    userProfile: z.string().optional(),
    beginDate: z.nullable(z.string()),
    endDate: z.nullable(z.string()),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolRole$;
(function (GetStudentsForClassInSchoolRole$) {
    /** @deprecated use `GetStudentsForClassInSchoolRole$inboundSchema` instead. */
    GetStudentsForClassInSchoolRole$.inboundSchema = GetStudentsForClassInSchoolRole$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolRole$outboundSchema` instead. */
    GetStudentsForClassInSchoolRole$.outboundSchema = GetStudentsForClassInSchoolRole$outboundSchema;
})(GetStudentsForClassInSchoolRole$ || (GetStudentsForClassInSchoolRole$ = {}));
export function getStudentsForClassInSchoolRoleToJSON(getStudentsForClassInSchoolRole) {
    return JSON.stringify(GetStudentsForClassInSchoolRole$outboundSchema.parse(getStudentsForClassInSchoolRole));
}
export function getStudentsForClassInSchoolRoleFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStudentsForClassInSchoolRole$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolRole' from JSON`);
}
/** @internal */
export const GetStudentsForClassInSchoolType$inboundSchema = z.nativeEnum(GetStudentsForClassInSchoolType);
/** @internal */
export const GetStudentsForClassInSchoolType$outboundSchema = GetStudentsForClassInSchoolType$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolType$;
(function (GetStudentsForClassInSchoolType$) {
    /** @deprecated use `GetStudentsForClassInSchoolType$inboundSchema` instead. */
    GetStudentsForClassInSchoolType$.inboundSchema = GetStudentsForClassInSchoolType$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolType$outboundSchema` instead. */
    GetStudentsForClassInSchoolType$.outboundSchema = GetStudentsForClassInSchoolType$outboundSchema;
})(GetStudentsForClassInSchoolType$ || (GetStudentsForClassInSchoolType$ = {}));
/** @internal */
export const GetStudentsForClassInSchoolAgent$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: GetStudentsForClassInSchoolType$inboundSchema,
});
/** @internal */
export const GetStudentsForClassInSchoolAgent$outboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: GetStudentsForClassInSchoolType$outboundSchema,
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolAgent$;
(function (GetStudentsForClassInSchoolAgent$) {
    /** @deprecated use `GetStudentsForClassInSchoolAgent$inboundSchema` instead. */
    GetStudentsForClassInSchoolAgent$.inboundSchema = GetStudentsForClassInSchoolAgent$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolAgent$outboundSchema` instead. */
    GetStudentsForClassInSchoolAgent$.outboundSchema = GetStudentsForClassInSchoolAgent$outboundSchema;
})(GetStudentsForClassInSchoolAgent$ || (GetStudentsForClassInSchoolAgent$ = {}));
export function getStudentsForClassInSchoolAgentToJSON(getStudentsForClassInSchoolAgent) {
    return JSON.stringify(GetStudentsForClassInSchoolAgent$outboundSchema.parse(getStudentsForClassInSchoolAgent));
}
export function getStudentsForClassInSchoolAgentFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStudentsForClassInSchoolAgent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolAgent' from JSON`);
}
/** @internal */
export const GetStudentsForClassInSchoolPrimaryOrg$inboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/** @internal */
export const GetStudentsForClassInSchoolPrimaryOrg$outboundSchema = z.object({
    href: z.string(),
    sourcedId: z.string(),
    type: z.string(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolPrimaryOrg$;
(function (GetStudentsForClassInSchoolPrimaryOrg$) {
    /** @deprecated use `GetStudentsForClassInSchoolPrimaryOrg$inboundSchema` instead. */
    GetStudentsForClassInSchoolPrimaryOrg$.inboundSchema = GetStudentsForClassInSchoolPrimaryOrg$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolPrimaryOrg$outboundSchema` instead. */
    GetStudentsForClassInSchoolPrimaryOrg$.outboundSchema = GetStudentsForClassInSchoolPrimaryOrg$outboundSchema;
})(GetStudentsForClassInSchoolPrimaryOrg$ || (GetStudentsForClassInSchoolPrimaryOrg$ = {}));
export function getStudentsForClassInSchoolPrimaryOrgToJSON(getStudentsForClassInSchoolPrimaryOrg) {
    return JSON.stringify(GetStudentsForClassInSchoolPrimaryOrg$outboundSchema.parse(getStudentsForClassInSchoolPrimaryOrg));
}
export function getStudentsForClassInSchoolPrimaryOrgFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStudentsForClassInSchoolPrimaryOrg$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolPrimaryOrg' from JSON`);
}
/** @internal */
export const GetStudentsForClassInSchoolUser$inboundSchema = z.object({
    sourcedId: z.string(),
    status: GetStudentsForClassInSchoolStatus$inboundSchema,
    dateLastModified: z.string().datetime({ offset: true }).transform(v => new Date(v)).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    userMasterIdentifier: z.nullable(z.string()).optional(),
    username: z.nullable(z.string()).optional(),
    userIds: z.array(z.lazy(() => GetStudentsForClassInSchoolUserId$inboundSchema)).optional(),
    enabledUser: z.boolean(),
    givenName: z.string(),
    familyName: z.string(),
    middleName: z.nullable(z.string()).optional(),
    roles: z.array(z.lazy(() => GetStudentsForClassInSchoolRole$inboundSchema)),
    agents: z.array(z.lazy(() => GetStudentsForClassInSchoolAgent$inboundSchema)),
    primaryOrg: z.lazy(() => GetStudentsForClassInSchoolPrimaryOrg$inboundSchema)
        .optional(),
    email: z.nullable(z.string()).optional(),
    preferredFirstName: z.nullable(z.string()).optional(),
    preferredMiddleName: z.nullable(z.string()).optional(),
    preferredLastName: z.nullable(z.string()).optional(),
    pronouns: z.nullable(z.string()).optional(),
    grades: z.array(z.string()).optional(),
    password: z.nullable(z.string()).optional(),
    sms: z.nullable(z.string()).optional(),
    phone: z.nullable(z.string()).optional(),
});
/** @internal */
export const GetStudentsForClassInSchoolUser$outboundSchema = z.object({
    sourcedId: z.string(),
    status: GetStudentsForClassInSchoolStatus$outboundSchema,
    dateLastModified: z.date().transform(v => v.toISOString()).optional(),
    metadata: z.nullable(z.record(z.any())).optional(),
    userMasterIdentifier: z.nullable(z.string()).optional(),
    username: z.nullable(z.string()).optional(),
    userIds: z.array(z.lazy(() => GetStudentsForClassInSchoolUserId$outboundSchema)).optional(),
    enabledUser: z.boolean(),
    givenName: z.string(),
    familyName: z.string(),
    middleName: z.nullable(z.string()).optional(),
    roles: z.array(z.lazy(() => GetStudentsForClassInSchoolRole$outboundSchema)),
    agents: z.array(z.lazy(() => GetStudentsForClassInSchoolAgent$outboundSchema)),
    primaryOrg: z.lazy(() => GetStudentsForClassInSchoolPrimaryOrg$outboundSchema)
        .optional(),
    email: z.nullable(z.string()).optional(),
    preferredFirstName: z.nullable(z.string()).optional(),
    preferredMiddleName: z.nullable(z.string()).optional(),
    preferredLastName: z.nullable(z.string()).optional(),
    pronouns: z.nullable(z.string()).optional(),
    grades: z.array(z.string()).optional(),
    password: z.nullable(z.string()).optional(),
    sms: z.nullable(z.string()).optional(),
    phone: z.nullable(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 GetStudentsForClassInSchoolUser$;
(function (GetStudentsForClassInSchoolUser$) {
    /** @deprecated use `GetStudentsForClassInSchoolUser$inboundSchema` instead. */
    GetStudentsForClassInSchoolUser$.inboundSchema = GetStudentsForClassInSchoolUser$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolUser$outboundSchema` instead. */
    GetStudentsForClassInSchoolUser$.outboundSchema = GetStudentsForClassInSchoolUser$outboundSchema;
})(GetStudentsForClassInSchoolUser$ || (GetStudentsForClassInSchoolUser$ = {}));
export function getStudentsForClassInSchoolUserToJSON(getStudentsForClassInSchoolUser) {
    return JSON.stringify(GetStudentsForClassInSchoolUser$outboundSchema.parse(getStudentsForClassInSchoolUser));
}
export function getStudentsForClassInSchoolUserFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStudentsForClassInSchoolUser$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolUser' from JSON`);
}
/** @internal */
export const GetStudentsForClassInSchoolResponseBody$inboundSchema = z.object({
    users: z.array(z.lazy(() => GetStudentsForClassInSchoolUser$inboundSchema)),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/** @internal */
export const GetStudentsForClassInSchoolResponseBody$outboundSchema = z.object({
    users: z.array(z.lazy(() => GetStudentsForClassInSchoolUser$outboundSchema)),
    totalCount: z.number(),
    pageCount: z.number(),
    pageNumber: z.number(),
    offset: z.number(),
    limit: z.number(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolResponseBody$;
(function (GetStudentsForClassInSchoolResponseBody$) {
    /** @deprecated use `GetStudentsForClassInSchoolResponseBody$inboundSchema` instead. */
    GetStudentsForClassInSchoolResponseBody$.inboundSchema = GetStudentsForClassInSchoolResponseBody$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolResponseBody$outboundSchema` instead. */
    GetStudentsForClassInSchoolResponseBody$.outboundSchema = GetStudentsForClassInSchoolResponseBody$outboundSchema;
})(GetStudentsForClassInSchoolResponseBody$ || (GetStudentsForClassInSchoolResponseBody$ = {}));
export function getStudentsForClassInSchoolResponseBodyToJSON(getStudentsForClassInSchoolResponseBody) {
    return JSON.stringify(GetStudentsForClassInSchoolResponseBody$outboundSchema.parse(getStudentsForClassInSchoolResponseBody));
}
export function getStudentsForClassInSchoolResponseBodyFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStudentsForClassInSchoolResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolResponseBody' from JSON`);
}
/** @internal */
export const GetStudentsForClassInSchoolResponse$inboundSchema = z.object({
    Result: z.lazy(() => GetStudentsForClassInSchoolResponseBody$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "Result": "result",
    });
});
/** @internal */
export const GetStudentsForClassInSchoolResponse$outboundSchema = z.object({
    result: z.lazy(() => GetStudentsForClassInSchoolResponseBody$outboundSchema),
}).transform((v) => {
    return remap$(v, {
        result: "Result",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var GetStudentsForClassInSchoolResponse$;
(function (GetStudentsForClassInSchoolResponse$) {
    /** @deprecated use `GetStudentsForClassInSchoolResponse$inboundSchema` instead. */
    GetStudentsForClassInSchoolResponse$.inboundSchema = GetStudentsForClassInSchoolResponse$inboundSchema;
    /** @deprecated use `GetStudentsForClassInSchoolResponse$outboundSchema` instead. */
    GetStudentsForClassInSchoolResponse$.outboundSchema = GetStudentsForClassInSchoolResponse$outboundSchema;
})(GetStudentsForClassInSchoolResponse$ || (GetStudentsForClassInSchoolResponse$ = {}));
export function getStudentsForClassInSchoolResponseToJSON(getStudentsForClassInSchoolResponse) {
    return JSON.stringify(GetStudentsForClassInSchoolResponse$outboundSchema.parse(getStudentsForClassInSchoolResponse));
}
export function getStudentsForClassInSchoolResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => GetStudentsForClassInSchoolResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetStudentsForClassInSchoolResponse' from JSON`);
}
//# sourceMappingURL=getstudentsforclassinschool.js.map