/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 90bea0602f9b
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
import { smartUnion } from "../../types/smartUnion.js";
import { JSONPatch$inboundSchema } from "./jsonpatch.js";
/** @internal */
export const JSONPatchPayloadValueResponse$inboundSchema = smartUnion([z.array(JSONPatch$inboundSchema), z.string()]);
export function jsonPatchPayloadValueResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => JSONPatchPayloadValueResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JSONPatchPayloadValueResponse' from JSON`);
}
//# sourceMappingURL=jsonpatchpayloadvalueresponse.js.map