/* * 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 PayScheduleAssignmentEmployee = { /** * The UUID of the employee. */ employeeUuid?: string | undefined; /** * The employee's pay schedule UUID. */ payScheduleUuid?: string | null | undefined; }; /** @internal */ export const PayScheduleAssignmentEmployee$inboundSchema: z.ZodType< PayScheduleAssignmentEmployee, z.ZodTypeDef, unknown > = z.object({ employee_uuid: z.string().optional(), pay_schedule_uuid: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { "employee_uuid": "employeeUuid", "pay_schedule_uuid": "payScheduleUuid", }); }); export function payScheduleAssignmentEmployeeFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => PayScheduleAssignmentEmployee$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayScheduleAssignmentEmployee' from JSON`, ); }