Destination.fromJson constructor

Destination.fromJson(
  1. Map<String, dynamic> json
)

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,
      );