<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />

Newtonsoft.Json.Utilities.EnumUtils

static class EnumUtils
namespace Newtonsoft.Json.Utilities { internal static class EnumUtils { public static IList<T> GetFlagsValues<T>(T value) where T : struct; public static bool TryToString(Type enumType, object value, bool camelCase, out string name); public static bool TryToString(Type enumType, object value, NamingStrategy namingStrategy, out string name); public static EnumInfo GetEnumValuesAndNames(Type enumType); public static object ParseEnum(Type enumType, NamingStrategy namingStrategy, string value, bool disallowNumber); } }