/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { FeedbackAggregationSelection$inboundSchema, FeedbackAggregationSelection$outboundSchema, } from "./feedbackaggregationselection.js";
import { FeedbackSimpleFieldSelection$inboundSchema, FeedbackSimpleFieldSelection$outboundSchema, } from "./feedbacksimplefieldselection.js";
import { FeedbackTimeBasedGroupBySelection$inboundSchema, FeedbackTimeBasedGroupBySelection$outboundSchema, } from "./feedbacktimebasedgroupbyselection.js";
/** @internal */
export const FeedbackSelection$inboundSchema = z.union([
    FeedbackAggregationSelection$inboundSchema,
    FeedbackTimeBasedGroupBySelection$inboundSchema,
    FeedbackSimpleFieldSelection$inboundSchema,
]);
/** @internal */
export const FeedbackSelection$outboundSchema = z.union([
    FeedbackAggregationSelection$outboundSchema,
    FeedbackTimeBasedGroupBySelection$outboundSchema,
    FeedbackSimpleFieldSelection$outboundSchema,
]);
export function feedbackSelectionToJSON(feedbackSelection) {
    return JSON.stringify(FeedbackSelection$outboundSchema.parse(feedbackSelection));
}
export function feedbackSelectionFromJSON(jsonString) {
    return safeParse(jsonString, (x) => FeedbackSelection$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FeedbackSelection' from JSON`);
}
//# sourceMappingURL=feedbackselection.js.map