/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import * as z from "zod/v3"; import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type QCStatementsQCLegislation = { countryCodes?: Array | null | undefined; }; /** @internal */ export const QCStatementsQCLegislation$inboundSchema: z.ZodType< QCStatementsQCLegislation, z.ZodTypeDef, unknown > = z.object({ country_codes: z.nullable(z.array(z.string())).optional(), }).transform((v) => { return remap$(v, { "country_codes": "countryCodes", }); }); export function qcStatementsQCLegislationFromJSON( jsonString: string, ): SafeParseResult { return safeParse( jsonString, (x) => QCStatementsQCLegislation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'QCStatementsQCLegislation' from JSON`, ); }