fromValue static method

SpaceType fromValue(
  1. String value
)

Implementation

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