/* * 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 { lazySchema as lazySchema$ } from "../../lib/schemas.js"; export type LinkedDepartmentInput = { /** * Id to be displayed. */ displayId?: string | null | undefined; /** * The name of the resource. */ name?: string | null | undefined; }; /** @internal */ export type LinkedDepartmentInput$Outbound = { display_id?: string | null | undefined; name?: string | null | undefined; }; /** @internal */ export const LinkedDepartmentInput$outboundSchema: z.ZodType< LinkedDepartmentInput$Outbound, z.ZodTypeDef, LinkedDepartmentInput > = /* @__PURE__ */ lazySchema$(() => z.object({ displayId: z.nullable(z.string()).optional(), name: z.nullable(z.string()).optional(), }).transform((v) => { return remap$(v, { displayId: "display_id", }); }) ); export function linkedDepartmentInputToJSON( linkedDepartmentInput: LinkedDepartmentInput, ): string { return JSON.stringify( LinkedDepartmentInput$outboundSchema.parse(linkedDepartmentInput), ); }