/* * 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 HidVertx = { firmwareDate?: string | undefined; id?: string | undefined; ip?: string | undefined; macAddress?: string | undefined; makeModel?: string | undefined; model?: string | undefined; version?: string | undefined; }; /** @internal */ export const HidVertx$inboundSchema: z.ZodType< HidVertx, z.ZodTypeDef, unknown > = z.object({ firmware_date: z.string().optional(), id: z.string().optional(), ip: z.string().optional(), mac_address: z.string().optional(), make_model: z.string().optional(), model: z.string().optional(), version: z.string().optional(), }).transform((v) => { return remap$(v, { "firmware_date": "firmwareDate", "mac_address": "macAddress", "make_model": "makeModel", }); }); export function hidVertxFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => HidVertx$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'HidVertx' from JSON`, ); }