Reads an enumeration value with of.
of
T Function(Object?, String) $enum<T>(T Function(String) of) => (v, path) => of($string(v, path));