Destination.fromJson constructor
Creates a Destination from JSON data.
Implementation
Destination.fromJson(Map<String, dynamic> json)
: this(
host: json['host'],
subnet: json['subnet'],
port:
json['port'] != null ? PortSelector.fromJson(json['port']) : null,
);