fromValue static method

RoomType fromValue(
  1. int value
)

Converts the integer value representation of a RoomType into a RoomType.

Implementation

static RoomType fromValue(int value) => RoomType.values[value - 1];