/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: a27c655f037c
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const Event$inboundSchema = z.object({
    name: z.string(),
    data: z.nullable(z.record(z.string(), z.any())).optional(),
    created_at: z.int(),
}).transform((v) => {
    return remap$(v, {
        "created_at": "createdAt",
    });
});
export function eventFromJSON(jsonString) {
    return safeParse(jsonString, (x) => Event$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Event' from JSON`);
}
//# sourceMappingURL=event.js.map