toJson method
Implementation
Map<String, dynamic> toJson() => {
'access_token': accessToken,
'device_id': deviceId,
'expires_in': expiresIn,
'organization_id': organizationId,
'refresh_token': refreshToken,
'token_type': tokenType,
if (userId != null) 'user_id': userId,
};