getRoomTypeFromString function
Converts stringRoomType
to the RoomType enum.
Implementation
RoomType getRoomTypeFromString(String stringRoomType) {
for (final roomType in RoomType.values) {
if (roomType.toString() == 'RoomType.$stringRoomType') {
return roomType;
}
}
return RoomType.unsupported;
}