/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import * as z from "zod";
import { safeParse } from "../../lib/schemas.js";
/** @internal */
export const PropertyValueResult$inboundSchema = z.object({
    value: z.nullable(z.string()),
    count: z.number(),
});
/** @internal */
export const PropertyValueResult$outboundSchema = z.object({
    value: z.nullable(z.string()),
    count: z.number(),
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
export var PropertyValueResult$;
(function (PropertyValueResult$) {
    /** @deprecated use `PropertyValueResult$inboundSchema` instead. */
    PropertyValueResult$.inboundSchema = PropertyValueResult$inboundSchema;
    /** @deprecated use `PropertyValueResult$outboundSchema` instead. */
    PropertyValueResult$.outboundSchema = PropertyValueResult$outboundSchema;
})(PropertyValueResult$ || (PropertyValueResult$ = {}));
export function propertyValueResultToJSON(propertyValueResult) {
    return JSON.stringify(PropertyValueResult$outboundSchema.parse(propertyValueResult));
}
export function propertyValueResultFromJSON(jsonString) {
    return safeParse(jsonString, (x) => PropertyValueResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PropertyValueResult' from JSON`);
}
//# sourceMappingURL=propertyvalueresult.js.map