/*
 * 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 available to subscribers for a benefit of type `feature_flag`.
 */
export type BenefitFeatureFlagSubscriberProperties = {};

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

export function benefitFeatureFlagSubscriberPropertiesFromJSON(
  jsonString: string,
): SafeParseResult<BenefitFeatureFlagSubscriberProperties, SDKValidationError> {
  return safeParse(
    jsonString,
    (x) =>
      BenefitFeatureFlagSubscriberProperties$inboundSchema.parse(JSON.parse(x)),
    `Failed to parse 'BenefitFeatureFlagSubscriberProperties' from JSON`,
  );
}
