/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: d3718666f4c8
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { EncodedPayloadOptions$inboundSchema, } from "./encodedpayloadoptions.js";
/** @internal */
export const JSONPayloadResponse$inboundSchema = z.object({
    type: z.literal("json").default("json"),
    value: z.any(),
    encoding_options: z.nullable(z.array(EncodedPayloadOptions$inboundSchema))
        .optional(),
}).transform((v) => {
    return remap$(v, {
        "encoding_options": "encodingOptions",
    });
});
export function jsonPayloadResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => JSONPayloadResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JSONPayloadResponse' from JSON`);
}
//# sourceMappingURL=jsonpayloadresponse.js.map