toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final data = <String, Object?>{};
  if (mHeroes != null) {
    data['m.heroes'] = mHeroes;
  }
  if (mJoinedMemberCount != null) {
    data['m.joined_member_count'] = mJoinedMemberCount;
  }
  if (mInvitedMemberCount != null) {
    data['m.invited_member_count'] = mInvitedMemberCount;
  }
  return data;
}