fromString static method
Converts a string to an EntityType enum value.
Implementation
static EntityType fromString(String value) {
return EntityType.values.firstWhere(
(e) => e.toString().split('.').last.toLowerCase() == value.toLowerCase(),
orElse: () => EntityType.modelVersion,
);
}