fromString method
Implementation
RoomVersionAvailable? fromString(String val) {
final override = {
'stable': RoomVersionAvailable.stable,
'unstable': RoomVersionAvailable.unstable,
}[val];
// ignore: unnecessary_this
return this.contains(override) ? override : null;
}