toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'name': 'USER_CHANGE', // USER_CHANGE is required
'oldUserId': oldUserId,
'userId': userId,
'sessionId': sessionId,
'device': device,
'os': os,
'lang': lang,
};
}