toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final m3pidChanges = this.m3pidChanges;
  final mChangePassword = this.mChangePassword;
  final mGetLoginToken = this.mGetLoginToken;
  final mRoomVersions = this.mRoomVersions;
  final mSetAvatarUrl = this.mSetAvatarUrl;
  final mSetDisplayname = this.mSetDisplayname;
  return {
    ...additionalProperties,
    if (m3pidChanges != null) 'm.3pid_changes': m3pidChanges.toJson(),
    if (mChangePassword != null)
      'm.change_password': mChangePassword.toJson(),
    if (mGetLoginToken != null) 'm.get_login_token': mGetLoginToken.toJson(),
    if (mRoomVersions != null) 'm.room_versions': mRoomVersions.toJson(),
    if (mSetAvatarUrl != null) 'm.set_avatar_url': mSetAvatarUrl.toJson(),
    if (mSetDisplayname != null)
      'm.set_displayname': mSetDisplayname.toJson(),
  };
}