fromString static method
Get the SupportedIdType from a valid string alias. If the input is invalid, will throw a FormatException.
Implementation
static SupportedIdType fromString(String input) {
for (var idType in all) {
if (idType.aliases.contains(input)) return idType;
}
var options = all.map((e) => "'${e.aliases.join("'|'")}'").join(', ');
throw FormatException('Invalid id type $input. Valid options: $options.');
}