GetRoomSummaryResponse$1.fromJson constructor

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

Implementation

GetRoomSummaryResponse$1.fromJson(Map<String, Object?> json)
  : allowedRoomIds = ((v) => v != null
        ? (v as List).map((v) => v as String).toList()
        : null)(json['allowed_room_ids']),
    encryption = ((v) => v != null ? v as String : null)(json['encryption']),
    roomType = ((v) => v != null ? v as String : null)(json['room_type']),
    roomVersion = ((v) =>
        v != null ? v as String : null)(json['room_version']);