tryParse static method

Pgs? tryParse(
  1. String? value
)

Implementation

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