/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Webproperty, Webproperty$inboundSchema } from "./webproperty.js"; export type WebpropertyAsset = { extensions: { [k: string]: any }; resource: Webproperty; }; /** @internal */ export const WebpropertyAsset$inboundSchema: z.ZodType< WebpropertyAsset, z.ZodTypeDef, unknown > = z.object({ extensions: z.record(z.any()), resource: Webproperty$inboundSchema, }); export function webpropertyAssetFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => WebpropertyAsset$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WebpropertyAsset' from JSON`, ); }