/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
import { GoogleLogoDetectionAnalysisData$inboundSchema, GoogleLogoDetectionAnalysisData$outboundSchema, } from "./googlelogodetectionanalysisdata.js";
import { LimitsObject$inboundSchema, LimitsObject$outboundSchema, } from "./limitsobject.js";
/** @internal */
export const AnalyzeGoogleLogoDetectionResponseData$inboundSchema = z.object({
    entity: z.string().optional(),
    analysis: GoogleLogoDetectionAnalysisData$inboundSchema.optional(),
});
/** @internal */
export const AnalyzeGoogleLogoDetectionResponseData$outboundSchema = z.object({
    entity: z.string().optional(),
    analysis: GoogleLogoDetectionAnalysisData$outboundSchema.optional(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeGoogleLogoDetectionResponseData$;
(function (AnalyzeGoogleLogoDetectionResponseData$) {
    /** @deprecated use `AnalyzeGoogleLogoDetectionResponseData$inboundSchema` instead. */
    AnalyzeGoogleLogoDetectionResponseData$.inboundSchema = AnalyzeGoogleLogoDetectionResponseData$inboundSchema;
    /** @deprecated use `AnalyzeGoogleLogoDetectionResponseData$outboundSchema` instead. */
    AnalyzeGoogleLogoDetectionResponseData$.outboundSchema = AnalyzeGoogleLogoDetectionResponseData$outboundSchema;
})(AnalyzeGoogleLogoDetectionResponseData$ || (AnalyzeGoogleLogoDetectionResponseData$ = {}));
export function analyzeGoogleLogoDetectionResponseDataToJSON(analyzeGoogleLogoDetectionResponseData) {
    return JSON.stringify(AnalyzeGoogleLogoDetectionResponseData$outboundSchema.parse(analyzeGoogleLogoDetectionResponseData));
}
export function analyzeGoogleLogoDetectionResponseDataFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeGoogleLogoDetectionResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeGoogleLogoDetectionResponseData' from JSON`);
}
/** @internal */
export const AnalyzeGoogleLogoDetectionResponse$inboundSchema = z.object({
    limits: z.nullable(LimitsObject$inboundSchema).optional(),
    request_id: z.string().optional(),
    data: z.lazy(() => AnalyzeGoogleLogoDetectionResponseData$inboundSchema)
        .optional(),
}).transform((v) => {
    return remap$(v, {
        "request_id": "requestId",
    });
});
/** @internal */
export const AnalyzeGoogleLogoDetectionResponse$outboundSchema = z.object({
    limits: z.nullable(LimitsObject$outboundSchema).optional(),
    requestId: z.string().optional(),
    data: z.lazy(() => AnalyzeGoogleLogoDetectionResponseData$outboundSchema)
        .optional(),
}).transform((v) => {
    return remap$(v, {
        requestId: "request_id",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var AnalyzeGoogleLogoDetectionResponse$;
(function (AnalyzeGoogleLogoDetectionResponse$) {
    /** @deprecated use `AnalyzeGoogleLogoDetectionResponse$inboundSchema` instead. */
    AnalyzeGoogleLogoDetectionResponse$.inboundSchema = AnalyzeGoogleLogoDetectionResponse$inboundSchema;
    /** @deprecated use `AnalyzeGoogleLogoDetectionResponse$outboundSchema` instead. */
    AnalyzeGoogleLogoDetectionResponse$.outboundSchema = AnalyzeGoogleLogoDetectionResponse$outboundSchema;
})(AnalyzeGoogleLogoDetectionResponse$ || (AnalyzeGoogleLogoDetectionResponse$ = {}));
export function analyzeGoogleLogoDetectionResponseToJSON(analyzeGoogleLogoDetectionResponse) {
    return JSON.stringify(AnalyzeGoogleLogoDetectionResponse$outboundSchema.parse(analyzeGoogleLogoDetectionResponse));
}
export function analyzeGoogleLogoDetectionResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => AnalyzeGoogleLogoDetectionResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AnalyzeGoogleLogoDetectionResponse' from JSON`);
}
//# sourceMappingURL=analyzegooglelogodetectionresponse.js.map