toMap method

Map<String, dynamic> toMap()

Converts the UserContext object into a Map.

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': userId,
    'customVariables': customVariables,
    'ipAddress': ipAddress,
    'userAgent': userAgent,
  };
}