static Pgs? tryParse(String? value) { for (Pgs pgs in Pgs.values) { if (value == pgs.name) { return pgs; } } return null; }