toJson method
Implementation
Map toJson() {
Map data = new Map();
data.putIfNotNull("appKey", appKey);
data.putIfNotNull("autoLogin", autoLogin);
data.putIfNotNull("debugModel", debugMode);
data.putIfNotNull("acceptInvitationAlways", acceptInvitationAlways);
data.putIfNotNull(
"autoAcceptGroupInvitation",
autoAcceptGroupInvitation,
);
data.putIfNotNull("deleteMessagesAsExitGroup", deleteMessagesAsExitGroup);
data.putIfNotNull(
"deleteMessagesAsExitChatRoom", deleteMessagesAsExitChatRoom);
data.putIfNotNull("dnsUrl", dnsUrl);
data.putIfNotNull("enableDNSConfig", enableDNSConfig);
data.putIfNotNull("imPort", imPort);
data.putIfNotNull("imServer", imServer);
data.putIfNotNull("isAutoDownload", isAutoDownloadThumbnail);
data.putIfNotNull(
"isChatRoomOwnerLeaveAllowed", isChatRoomOwnerLeaveAllowed);
data.putIfNotNull("requireAck", requireAck);
data.putIfNotNull("requireDeliveryAck", requireDeliveryAck);
data.putIfNotNull("restServer", restServer);
data.putIfNotNull("serverTransfer", serverTransfer);
data.putIfNotNull("sortMessageByServerTime", sortMessageByServerTime);
data.putIfNotNull("usingHttpsOnly", usingHttpsOnly);
data.putIfNotNull('loadEmptyConversations', enableEmptyConversation);
data.putIfNotNull('deviceName', deviceName);
data.putIfNotNull('osType', osType);
data.putIfNotNull('useReplacedMessageContents', useReplacedMessageContents);
data.putIfNotNull('enableTLS', enableTLS);
data.putIfNotNull('messagesReceiveCallbackIncludeSend',
messagesReceiveCallbackIncludeSend);
data.putIfNotNull('regardImportMessagesAsRead', regardImportMessagesAsRead);
data["usingHttpsOnly"] = this.usingHttpsOnly;
data["pushConfig"] = this._pushConfig.toJson();
data["areaCode"] = this.chatAreaCode;
return data;
}