toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data['inviteID'] = inviteID;
data['groupID'] = groupID;
data['inviter'] = inviter;
data['inviteeList'] = inviteeList;
data['data'] = this.data;
data['timeout'] = timeout;
data['actionType'] = actionType;
// 下方三个参数ios不会返回
if (data['businessID'] != null) data['businessID'] = businessID;
if (data['businessID'] != null) {
data['isOnlineUserOnly'] = isOnlineUserOnly;
}
if (data['offlinePushInfo'] != null) {
data['offlinePushInfo'] = offlinePushInfo?.toJson();
}
return data;
}