/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. * @generated-id: 73a099795080 */ import * as z from "zod/v4"; import { safeParse } from "../lib/schemas.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export type DeploymentPortalManagedDnsRecord = { name: string; type: string; value: string; ttl?: number | null | undefined; }; /** @internal */ export const DeploymentPortalManagedDnsRecord$inboundSchema: z.ZodType< DeploymentPortalManagedDnsRecord, unknown > = z.object({ name: z.string(), type: z.string(), value: z.string(), ttl: z.nullable(z.int()).optional(), }); export function deploymentPortalManagedDnsRecordFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => DeploymentPortalManagedDnsRecord$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentPortalManagedDnsRecord' from JSON`, ); }