toJson method

Json toJson()

This socket's configuration in JSON format.

Implementation

Json toJson() => {
  "host": address.address,
  "port": port,
};