fromString method

RoomVersionAvailable? fromString(
  1. String val
)

Implementation

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