/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: bcff86901584
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const ToolProperties$inboundSchema = z.object({
    read_only: z.nullable(z.boolean()),
}).transform((v) => {
    return remap$(v, {
        "read_only": "readOnly",
    });
});
/** @internal */
export const ToolProperties$outboundSchema = z.object({
    readOnly: z.nullable(z.boolean()),
}).transform((v) => {
    return remap$(v, {
        readOnly: "read_only",
    });
});
export function toolPropertiesToJSON(toolProperties) {
    return JSON.stringify(ToolProperties$outboundSchema.parse(toolProperties));
}
export function toolPropertiesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ToolProperties$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolProperties' from JSON`);
}
//# sourceMappingURL=toolproperties.js.map