toLogString method
Implementation
String toLogString() {
String res = "";
res += "$code|$desc|";
if (this.data == null) {
res += "null";
} else {
if (T == V2TimMessage) {
res += (this.data as V2TimMessage).toLogString();
} else if (T == V2TimFollowTypeCheckResult) {
res += (this.data as V2TimFollowTypeCheckResult).toLogString();
} else if (T == V2TimConversationFilter) {
res += (this.data as V2TimConversationFilter).toLogString();
} else if (T == V2TimUserInfoResult) {
res += (this.data as V2TimUserInfoResult).toLogString();
} else if (T == V2TimFollowInfo) {
res += (this.data as V2TimFollowInfo).toLogString();
} else if (T == V2TimMessageListResult) {
res += (this.data as V2TimMessageListResult).toLogString();
} else if (T == V2TimUserFullInfo) {
res += (this.data as V2TimUserFullInfo).toLogString();
} else if (T == _getT<List<V2TimOfficialAccountInfoResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimOfficialAccountInfoResult).toLogString()).toList());
} else if (T == _getT<List<V2TimPermissionGroupMemberOperationResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimPermissionGroupMemberOperationResult).toLogString()).toList());
} else if (T == _getT<List<V2TimPermissionGroupOperationResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimPermissionGroupOperationResult).toLogString()).toList());
} else if (T == _getT<List<V2TimTopicPermissionResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimTopicPermissionResult).toLogString()).toList());
} else if (T == _getT<List<V2TimFollowInfo>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimFollowInfo).toLogString()).toList());
} else if (T == _getT<List<V2TimFollowTypeCheckResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimFollowTypeCheckResult).toLogString()).toList());
} else if (T == _getT<List<V2TimFollowOperationResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimFollowOperationResult).toLogString()).toList());
} else if (T == _getT<List<V2TimUserFullInfo>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimUserFullInfo).toLogString()).toList());
} else if (T == _getT<List<V2TimGroupInfo>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimGroupInfo).toLogString()).toList());
} else if (T == _getT<List<V2TimGroupInfoResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimGroupInfoResult).toLogString()).toList());
} else if (T == _getT<Map<String, String>>()) {
res += json.encode(this.data as Map<String, String>);
} else if (T == _getT<Map<String, int>>()) {
res += json.encode(this.data as Map<String, int>);
} else if (T == V2TimGroupMemberInfoResult) {
res += (this.data as V2TimGroupMemberInfoResult).toLogString();
} else if (T == _getT<List<V2TimGroupMemberFullInfo>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimGroupMemberFullInfo).toLogString()).toList());
} else if (T == _getT<List<V2TimMessageReactionResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimMessageReactionResult).toLogString()).toList());
} else if (T == _getT<List<V2TimGroupMemberOperationResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimGroupMemberOperationResult).toLogString()).toList());
} else if (T == V2TimGroupApplicationResult) {
res += (this.data as V2TimGroupApplicationResult).toLogString();
} else if (T == V2TimConversation) {
res += (this.data as V2TimConversation).toLogString();
} else if (T == V2TimConversationResult) {
res += (this.data as V2TimConversationResult).toLogString();
} else if (T == _getT<List<V2TimFriendInfo>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimFriendInfo).toLogString()).toList());
} else if (T == _getT<List<V2TimFriendInfoResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimFriendInfoResult).toLogString()).toList());
} else if (T == _getT<List<V2TimReceiveMessageOptInfo>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimReceiveMessageOptInfo).toLogString()).toList());
} else if (T == V2TimFriendOperationResult) {
res += (this.data as V2TimFriendOperationResult).toLogString();
} else if (T == _getT<List<V2TimFriendOperationResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimFriendOperationResult).toLogString()).toList());
} else if (T == V2TimFriendCheckResult) {
res += (this.data as V2TimFriendCheckResult).toLogString();
} else if (T == _getT<List<V2TimFriendCheckResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimFriendCheckResult).toLogString()).toList());
} else if (T == V2TimFriendApplicationResult) {
res += (this.data as V2TimFriendApplicationResult).toLogString();
} else if (T == _getT<List<V2TimFriendGroup>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimFriendGroup).toLogString()).toList());
} else if (T == _getT<List<V2TimMessage>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimMessage).toLogString()).toList());
} else if (T == _getT<List<V2TimMessageExtensionResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimMessageExtensionResult).toLogString()).toList());
} else if (T == _getT<List<V2TimMessageExtension>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimMessageExtension).toLogString()).toList());
} else if (T == V2TimMessageSearchResult) {
res += (this.data as V2TimMessageSearchResult).toLogString();
} else if (T == V2TimMessageOnlineUrl) {
res += (this.data as V2TimMessageOnlineUrl).toLogString();
} else if (T == V2TimSignalingInfo) {
res += (this.data as V2TimSignalingInfo).toLogString();
} else if (T == V2TimReceiveMessageOptInfo) {
res += (this.data as V2TimReceiveMessageOptInfo).toLogString();
} else if (T == V2TimMsgCreateInfoResult) {
res += (this.data as V2TimMsgCreateInfoResult).toLogString();
} else if (T == V2TimMessageChangeInfo) {
res += (this.data as V2TimMessageChangeInfo).toLogString();
} else if (T == V2TimPermissionGroupMemberInfoResult) {
res += (this.data as V2TimPermissionGroupMemberInfoResult).toLogString();
} else if (T == V2TimConversationOperationResult) {
res += (this.data as V2TimConversationOperationResult).toLogString();
} else if (T == V2TimGroupMessageReadMemberList) {
res += (this.data as V2TimGroupMessageReadMemberList).toLogString();
} else if (T == _getT<List<V2TimMessageReceipt>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimMessageReceipt).toLogString()).toList());
} else if (T == _getT<List<V2TimTopicInfoResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimTopicInfoResult).toLogString()).toList());
} else if (T == _getT<List<V2TimTopicOperationResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimTopicOperationResult).toJson()).toList());
} else if (T == _getT<List<V2TimGroupInfo>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimGroupInfo).toLogString()).toList());
} else if (T == _getT<List<V2TimUserStatus>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimUserStatus).toLogString()).toList());
} else if (T == _getT<List<V2TimPermissionGroupInfoResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimPermissionGroupInfoResult).toLogString()).toList());
} else if (T == _getT<List<V2TimConversationOperationResult>>()) {
res += json.encode((this.data as List).map((e) => (e as V2TimConversationOperationResult).toLogString()).toList());
} else if (T == V2TimReceiveMessageOptInfo) {
res += (this.data as V2TimReceiveMessageOptInfo).toLogString();
} else if (T == V2TimMessageReactionResult) {
res += (this.data as V2TimMessageReactionResult).toLogString();
} else if (T == V2TimMessageReactionUserResult) {
res += (this.data as V2TimMessageReactionUserResult).toLogString();
} else {
res = "$res|${this.data}";
}
}
return res;
}