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