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

Newtonsoft.Json.Utilities.EnumUtils

static class EnumUtils
public static EnumInfo GetEnumValuesAndNames(Type enumType)

public static IList<T> GetFlagsValues<T>(T value) where T : struct

public static object ParseEnum(Type enumType, NamingStrategy namingStrategy, string value, bool disallowNumber)

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)