toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'sessionType':
NIMSessionTypeConverter(sessionType: sessionType).toValue(),
'fromAccount': fromAccount,
'toAccount': toAccount,
'time': time,
'serverId': serverId,
'uuid': uuid,
};
}