/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: ebbab5b35e69
 */
import * as z from "zod/v4";
import { remap as remap$ } from "../../lib/primitives.js";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const PaginationResponse$inboundSchema = z.object({
    next_cursor: z.nullable(z.string()).optional(),
    page_size: z.int(),
}).transform((v) => {
    return remap$(v, {
        "next_cursor": "nextCursor",
        "page_size": "pageSize",
    });
});
export function paginationResponseFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PaginationResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaginationResponse' from JSON`);
}
//# sourceMappingURL=paginationresponse.js.map