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