toJson method
Implementation
Map<String, dynamic> toJson() {
final password = this.password;
final revision = this.revision;
final sshKey = this.sshKey;
final type = this.type;
final url = this.url;
final username = this.username;
return {
if (password != null) 'Password': password,
if (revision != null) 'Revision': revision,
if (sshKey != null) 'SshKey': sshKey,
if (type != null) 'Type': type.toValue(),
if (url != null) 'Url': url,
if (username != null) 'Username': username,
};
}