/*
 * 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";

/**
 * Properties for a benefit of type `feature_flag`.
 */
export type BenefitFeatureFlagProperties = {};

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

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

export function benefitFeatureFlagPropertiesToJSON(
  benefitFeatureFlagProperties: BenefitFeatureFlagProperties,
): string {
  return JSON.stringify(
    BenefitFeatureFlagProperties$outboundSchema.parse(
      benefitFeatureFlagProperties,
    ),
  );
}
export function benefitFeatureFlagPropertiesFromJSON(
  jsonString: string,
): SafeParseResult<BenefitFeatureFlagProperties, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) => BenefitFeatureFlagProperties$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'BenefitFeatureFlagProperties' from JSON`,
  );
}
