toJson method
Implementation
Map<String, Object?> toJson() {
final accessToken = this.accessToken;
final deviceId = this.deviceId;
final expiresInMs = this.expiresInMs;
final noDe = this.noDe;
final refreshToken = this.refreshToken;
return {
if (accessToken != null) 'access_token': accessToken,
if (deviceId != null) 'device_id': deviceId,
if (expiresInMs != null) 'expires_in_ms': expiresInMs,
if (noDe != null) 'home_server': noDe,
if (refreshToken != null) 'refresh_token': refreshToken,
'user_id': userId,
};
}