toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  final mIdentityServer = this.mIdentityServer;
  return {
    ...additionalProperties,
    'm.homeserver': mHomeserver.toJson(),
    if (mIdentityServer != null)
      'm.identity_server': mIdentityServer.toJson(),
  };
}