toJson method
Implementation
Map<String, dynamic> toJson() {
final hostAddress = this.hostAddress;
final id = this.id;
final metadata = this.metadata;
final portNumber = this.portNumber;
return {
if (hostAddress != null) 'HostAddress': hostAddress,
if (id != null) 'Id': id,
if (metadata != null) 'Metadata': metadata,
if (portNumber != null) 'PortNumber': portNumber,
};
}