toJson method
Implementation
Map<String, Object?> toJson() {
final expiresInMs = this.expiresInMs;
final noDe = this.noDe;
final refreshToken = this.refreshToken;
final wellKnown = this.wellKnown;
return {
'access_token': accessToken,
'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,
if (wellKnown != null) 'well_known': wellKnown.toJson(),
};
}