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