/*
 * 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 BenefitGrantCustomProperties = {};

/** @internal */
export const BenefitGrantCustomProperties$inboundSchema: z.ZodMiniType<
  BenefitGrantCustomProperties,
  unknown
> = z.object({});
/** @internal */
export type BenefitGrantCustomProperties$Outbound = {};

/** @internal */
export const BenefitGrantCustomProperties$outboundSchema: z.ZodMiniType<
  BenefitGrantCustomProperties$Outbound,
  BenefitGrantCustomProperties
> = z.object({});

export function benefitGrantCustomPropertiesToJSON(
  benefitGrantCustomProperties: BenefitGrantCustomProperties,
): string {
  return JSON.stringify(
    BenefitGrantCustomProperties$outboundSchema.parse(
      benefitGrantCustomProperties,
    ),
  );
}
export function benefitGrantCustomPropertiesFromJSON(
  jsonString: string,
): SafeParseResult<BenefitGrantCustomProperties, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => BenefitGrantCustomProperties$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'BenefitGrantCustomProperties' from JSON`,
  );
}
