of static method
Implementation
static EntityType of(String? name) {
return EntityType.values.firstWhere(
(e) => e.name == name,
orElse: () => EntityType.unknown,
);
}
static EntityType of(String? name) {
return EntityType.values.firstWhere(
(e) => e.name == name,
orElse: () => EntityType.unknown,
);
}