/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { UserParcelTemplate, UserParcelTemplate$inboundSchema, } from "./userparceltemplate.js"; export type UserParcelTemplateList = { results?: Array | undefined; }; /** @internal */ export const UserParcelTemplateList$inboundSchema: z.ZodMiniType< UserParcelTemplateList, unknown > = z.object({ results: z.optional(z.array(UserParcelTemplate$inboundSchema)), }); export function userParcelTemplateListFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => UserParcelTemplateList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserParcelTemplateList' from JSON`, ); }