/*
 * 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 AnalyzeGoogleTaggingResponse$inboundSchema = z.union([
    components.AnalyzeGoogleTaggingResponse$inboundSchema,
    components.AsyncOperationAcceptedResponse$inboundSchema,
]);
/** @internal */
export const AnalyzeGoogleTaggingResponse$outboundSchema = z.union([
    components.AnalyzeGoogleTaggingResponse$outboundSchema,
    components.AsyncOperationAcceptedResponse$outboundSchema,
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeGoogleTaggingResponse$;
(function (AnalyzeGoogleTaggingResponse$) {
    /** @deprecated use `AnalyzeGoogleTaggingResponse$inboundSchema` instead. */
    AnalyzeGoogleTaggingResponse$.inboundSchema = AnalyzeGoogleTaggingResponse$inboundSchema;
    /** @deprecated use `AnalyzeGoogleTaggingResponse$outboundSchema` instead. */
    AnalyzeGoogleTaggingResponse$.outboundSchema = AnalyzeGoogleTaggingResponse$outboundSchema;
})(AnalyzeGoogleTaggingResponse$ || (AnalyzeGoogleTaggingResponse$ = {}));
export function analyzeGoogleTaggingResponseToJSON(analyzeGoogleTaggingResponse) {
    return JSON.stringify(AnalyzeGoogleTaggingResponse$outboundSchema.parse(analyzeGoogleTaggingResponse));
}
export function analyzeGoogleTaggingResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeGoogleTaggingResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeGoogleTaggingResponse' from JSON`);
}
//# sourceMappingURL=analyzegoogletagging.js.map