/*
 * 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";
/** @internal */
export const DestroyByAssetIdGlobals$inboundSchema = z.object({
    cloud_name: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        "cloud_name": "cloudName",
    });
});
/** @internal */
export const DestroyByAssetIdGlobals$outboundSchema = z.object({
    cloudName: z.string().optional(),
}).transform((v) => {
    return remap$(v, {
        cloudName: "cloud_name",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var DestroyByAssetIdGlobals$;
(function (DestroyByAssetIdGlobals$) {
    /** @deprecated use `DestroyByAssetIdGlobals$inboundSchema` instead. */
    DestroyByAssetIdGlobals$.inboundSchema = DestroyByAssetIdGlobals$inboundSchema;
    /** @deprecated use `DestroyByAssetIdGlobals$outboundSchema` instead. */
    DestroyByAssetIdGlobals$.outboundSchema = DestroyByAssetIdGlobals$outboundSchema;
})(DestroyByAssetIdGlobals$ || (DestroyByAssetIdGlobals$ = {}));
export function destroyByAssetIdGlobalsToJSON(destroyByAssetIdGlobals) {
    return JSON.stringify(DestroyByAssetIdGlobals$outboundSchema.parse(destroyByAssetIdGlobals));
}
export function destroyByAssetIdGlobalsFromJSON(jsonString) {
    return safeParse(jsonString, (x) => DestroyByAssetIdGlobals$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DestroyByAssetIdGlobals' from JSON`);
}
//# sourceMappingURL=destroybyassetid.js.map