toJson method
Implementation
Map<String, dynamic> toJson() {
final uri = this.uri;
final passwordParam = this.passwordParam;
final username = this.username;
return {
'uri': uri,
if (passwordParam != null) 'passwordParam': passwordParam,
if (username != null) 'username': username,
};
}