PublicRoomsChunk.fromJson constructor
Implementation
PublicRoomsChunk.fromJson(Map<String, Object?> json)
: avatarUrl = ((v) =>
v != null ? Uri.parse(v as String) : null)(json['avatar_url']),
canonicalAlias =
((v) => v != null ? v as String : null)(json['canonical_alias']),
guestCanJoin = json['guest_can_join'] as bool,
joinRule = ((v) => v != null ? v as String : null)(json['join_rule']),
name = ((v) => v != null ? v as String : null)(json['name']),
numJoinedMembers = json['num_joined_members'] as int,
roomId = json['room_id'] as String,
roomType = ((v) => v != null ? v as String : null)(json['room_type']),
topic = ((v) => v != null ? v as String : null)(json['topic']),
worldReadable = json['world_readable'] as bool;