/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod/v3";
import { safeParse } from "../../lib/schemas.js";
import { FeedbackField$inboundSchema, FeedbackField$outboundSchema, } from "./feedbackfield.js";
/** @internal */
export const FeedbackGroupBy$inboundSchema = z.object({
    field: FeedbackField$inboundSchema,
    path: z.array(z.string()).optional(),
    includeInSelect: z.boolean().default(true),
});
/** @internal */
export const FeedbackGroupBy$outboundSchema = z.object({
    field: FeedbackField$outboundSchema,
    path: z.array(z.string()).optional(),
    includeInSelect: z.boolean().default(true),
});
export function feedbackGroupByToJSON(feedbackGroupBy) {
    return JSON.stringify(FeedbackGroupBy$outboundSchema.parse(feedbackGroupBy));
}
export function feedbackGroupByFromJSON(jsonString) {
    return safeParse(jsonString, (x) => FeedbackGroupBy$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'FeedbackGroupBy' from JSON`);
}
//# sourceMappingURL=feedbackgroupby.js.map