toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {'endpoint': endpoint, 'token': token, 'user_id': userId};
}