fromString static method
Parse a RegistryEventType from its string name.
Implementation
static RegistryEventType fromString(String value) {
return RegistryEventType.values.firstWhere(
(e) => e.name == value,
orElse: () => RegistryEventType.deviceError,
);
}