/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v4-mini"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type BenefitGrantDownloadablesProperties = { files?: Array | undefined; }; /** @internal */ export const BenefitGrantDownloadablesProperties$inboundSchema: z.ZodMiniType< BenefitGrantDownloadablesProperties, unknown > = z.object({ files: z.optional(z.array(z.string())), }); /** @internal */ export type BenefitGrantDownloadablesProperties$Outbound = { files?: Array | undefined; }; /** @internal */ export const BenefitGrantDownloadablesProperties$outboundSchema: z.ZodMiniType< BenefitGrantDownloadablesProperties$Outbound, BenefitGrantDownloadablesProperties > = z.object({ files: z.optional(z.array(z.string())), }); export function benefitGrantDownloadablesPropertiesToJSON( benefitGrantDownloadablesProperties: BenefitGrantDownloadablesProperties, ): string { return JSON.stringify( BenefitGrantDownloadablesProperties$outboundSchema.parse( benefitGrantDownloadablesProperties, ), ); } export function benefitGrantDownloadablesPropertiesFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => BenefitGrantDownloadablesProperties$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'BenefitGrantDownloadablesProperties' from JSON`, ); }