/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 4be8139b7d7a
 */
import { safeParse } from "../../lib/schemas.js";
import { smartUnion } from "../../types/smartUnion.js";
import { MessageInputEntry$inboundSchema, } from "./messageinputentry.js";
import { MessageOutputEntry$inboundSchema, } from "./messageoutputentry.js";
/** @internal */
export const MessageEntries$inboundSchema = smartUnion([
    MessageInputEntry$inboundSchema,
    MessageOutputEntry$inboundSchema,
]);
export function messageEntriesFromJSON(jsonString) {
    return safeParse(jsonString, (x) => MessageEntries$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessageEntries' from JSON`);
}
//# sourceMappingURL=messageentries.js.map