fromString static method

WantedPersonStatus fromString(
  1. String value
)

Get an WantedPersonStatus from a given string value.

Implementation

static WantedPersonStatus fromString(String value) {
  return values.firstWhere(
    (status) => status.value == value,
    orElse: () => unknown,
  );
}