/* * 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 WeblogicT3 = { error?: string | undefined; errorMessage?: string | undefined; weblogicVersion?: string | undefined; }; /** @internal */ export const WeblogicT3$inboundSchema: z.ZodType< WeblogicT3, z.ZodTypeDef, unknown > = z.object({ error: z.string().optional(), error_message: z.string().optional(), weblogic_version: z.string().optional(), }).transform((v) => { return remap$(v, { "error_message": "errorMessage", "weblogic_version": "weblogicVersion", }); }); export function weblogicT3FromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => WeblogicT3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WeblogicT3' from JSON`, ); }