static HashType fromValue(String value) { for (final item in HashType.values) { if (item.wireValue == value) { return item; } } throw ArgumentError('Unknown HashType value: $value'); }