from static method
Implementation
static QuantityType from(String identifier) {
for (final type in QuantityType.values) {
if (type.identifier == identifier) {
return type;
}
}
throw InvalidValueException('Unknown identifier: $identifier');
}