Converts the UserContext object into a Map.
UserContext
Map<String, dynamic> toMap() { return { 'id': userId, 'customVariables': customVariables, 'ipAddress': ipAddress, 'userAgent': userAgent, }; }