/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
import * as components from "../components/index.js";
/** @internal */
export const AnalyzeCldFashionResponse$inboundSchema = z.union([
    components.AsyncOperationAcceptedResponse$inboundSchema,
    components.AnalyzeCldFashionResponse$inboundSchema,
]);
/** @internal */
export const AnalyzeCldFashionResponse$outboundSchema = z.union([
    components.AsyncOperationAcceptedResponse$outboundSchema,
    components.AnalyzeCldFashionResponse$outboundSchema,
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeCldFashionResponse$;
(function (AnalyzeCldFashionResponse$) {
    /** @deprecated use `AnalyzeCldFashionResponse$inboundSchema` instead. */
    AnalyzeCldFashionResponse$.inboundSchema = AnalyzeCldFashionResponse$inboundSchema;
    /** @deprecated use `AnalyzeCldFashionResponse$outboundSchema` instead. */
    AnalyzeCldFashionResponse$.outboundSchema = AnalyzeCldFashionResponse$outboundSchema;
})(AnalyzeCldFashionResponse$ || (AnalyzeCldFashionResponse$ = {}));
export function analyzeCldFashionResponseToJSON(analyzeCldFashionResponse) {
    return JSON.stringify(AnalyzeCldFashionResponse$outboundSchema.parse(analyzeCldFashionResponse));
}
export function analyzeCldFashionResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeCldFashionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeCldFashionResponse' from JSON`);
}
//# sourceMappingURL=analyzecldfashion.js.map