toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (host != null) 'host': host!,
if (password != null) 'password': password!,
if (port != null) 'port': port!,
if (securityMode != null) 'securityMode': securityMode!,
if (username != null) 'username': username!,
};