/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: f0a5b51df4e7
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const WorkflowExecutionCanceledAttributes$inboundSchema = z.object({
    task_id: z.string(),
    reason: z.nullable(z.string()).optional(),
}).transform((v) => {
    return remap$(v, {
        "task_id": "taskId",
    });
});
export function workflowExecutionCanceledAttributesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => WorkflowExecutionCanceledAttributes$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'WorkflowExecutionCanceledAttributes' from JSON`);
}
//# sourceMappingURL=workflowexecutioncanceledattributes.js.map