TypeSafeEnumConverter<T> public class TypeSafeEnumConverter<T> : JsonConverter<T> Maps strings to/from Union cases; refuses to convert for values not in the Union Documentation Code public TypeSafeEnumConverter()