RoomSummary.fromJson constructor

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

Implementation

RoomSummary.fromJson(Map<String, Object?> json)
    : mHeroes = json['m.heroes'] != null
          ? List<String>.from(json['m.heroes'] as List)
          : null,
      mJoinedMemberCount = json['m.joined_member_count'] as int?,
      mInvitedMemberCount = json['m.invited_member_count'] as int?;