/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type PayScheduleAssignmentDepartment = { /** * The UUID of the department. */ departmentUuid?: string | undefined; /** * The department's pay schedule UUID. */ payScheduleUuid?: string | undefined; }; /** @internal */ export const PayScheduleAssignmentDepartment$inboundSchema: z.ZodType< PayScheduleAssignmentDepartment, z.ZodTypeDef, unknown > = z.object({ department_uuid: z.string().optional(), pay_schedule_uuid: z.string().optional(), }).transform((v) => { return remap$(v, { "department_uuid": "departmentUuid", "pay_schedule_uuid": "payScheduleUuid", }); }); export function payScheduleAssignmentDepartmentFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => PayScheduleAssignmentDepartment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayScheduleAssignmentDepartment' from JSON`, ); }