getByValue static method

ParkingPurpose getByValue(
  1. int value
)

Implementation

static ParkingPurpose getByValue(int value) {
  return ParkingPurpose.values.firstWhere((x) => x.rawValue == value);
}