/*
 * 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 { BasinInfo$inboundSchema, BasinInfo$outboundSchema, } from "./basininfo.js";
/** @internal */
export const ListBasinsResponse$inboundSchema = z.object({
    basins: z.array(BasinInfo$inboundSchema),
    has_more: z.boolean(),
}).transform((v) => {
    return remap$(v, {
        "has_more": "hasMore",
    });
});
/** @internal */
export const ListBasinsResponse$outboundSchema = z.object({
    basins: z.array(BasinInfo$outboundSchema),
    hasMore: z.boolean(),
}).transform((v) => {
    return remap$(v, {
        hasMore: "has_more",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var ListBasinsResponse$;
(function (ListBasinsResponse$) {
    /** @deprecated use `ListBasinsResponse$inboundSchema` instead. */
    ListBasinsResponse$.inboundSchema = ListBasinsResponse$inboundSchema;
    /** @deprecated use `ListBasinsResponse$outboundSchema` instead. */
    ListBasinsResponse$.outboundSchema = ListBasinsResponse$outboundSchema;
})(ListBasinsResponse$ || (ListBasinsResponse$ = {}));
export function listBasinsResponseToJSON(listBasinsResponse) {
    return JSON.stringify(ListBasinsResponse$outboundSchema.parse(listBasinsResponse));
}
export function listBasinsResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => ListBasinsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListBasinsResponse' from JSON`);
}
//# sourceMappingURL=listbasinsresponse.js.map