/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 00cc829a764b
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { ObservabilityErrorCode$inboundSchema, } from "./observabilityerrorcode.js";
/** @internal */
export const ObservabilityErrorDetail$inboundSchema = z.object({
    message: z.string(),
    error_code: z.nullable(ObservabilityErrorCode$inboundSchema),
}).transform((v) => {
    return remap$(v, {
        "error_code": "errorCode",
    });
});
export function observabilityErrorDetailFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ObservabilityErrorDetail$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ObservabilityErrorDetail' from JSON`);
}
//# sourceMappingURL=observabilityerrordetail.js.map