fromValue static method

SpaceStatus fromValue(
  1. String value
)

Implementation

static SpaceStatus fromValue(String value) => values
    .firstWhere((e) => e.value == value, orElse: () => SpaceStatus._(value));