// <auto-generated/>

#nullable disable

using System;

namespace SampleTypeSpec
{
    internal static partial class FloatFixedEnumWithIntValueExtensions
    {
        /// <param name="value"> The value to deserialize. </param>
        public static FloatFixedEnumWithIntValue ToFloatFixedEnumWithIntValue(this int value)
        {
            if (value == 1)
            {
                return FloatFixedEnumWithIntValue.One;
            }
            if (value == 2)
            {
                return FloatFixedEnumWithIntValue.Two;
            }
            if (value == 4)
            {
                return FloatFixedEnumWithIntValue.Four;
            }
            throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FloatFixedEnumWithIntValue value.");
        }
    }
}
