RoomVersionsCapability.fromJson constructor

RoomVersionsCapability.fromJson(
  1. Map<String, Object?> json
)

Implementation

RoomVersionsCapability.fromJson(Map<String, Object?> json)
    : available = (json['available'] as Map<String, Object?>).map(
        (k, v) =>
            MapEntry(k, RoomVersionAvailable.values.fromString(v as String)!),
      ),
      default$ = json['default'] as String;