/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 * @generated-id: 3858f05a5c3d
 */
import * as z from "zod/v4";
import { safeParse } from "../../lib/schemas.js";
import { Campaign$inboundSchema } from "./campaign.js";
/** @internal */
export const PaginatedResultCampaignPreview$inboundSchema = z.object({
    results: z.array(Campaign$inboundSchema).optional(),
    count: z.int(),
    next: z.nullable(z.string()).optional(),
    previous: z.nullable(z.string()).optional(),
});
export function paginatedResultCampaignPreviewFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PaginatedResultCampaignPreview$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaginatedResultCampaignPreview' from JSON`);
}
//# sourceMappingURL=paginatedresultcampaignpreview.js.map