toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson(){
  return {
    "sessionId": sessionId,
    "userId": userId,
    "displayName": displayName,
    "roles": roles,
    "metadata": metadata
  };
}