Proxy.fromJson constructor

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

Parse from a json

Implementation

Proxy.fromJson(Map<String, dynamic> json) {
  this.id = json['id'];
  this.server = json['server'];
  this.port = json['port'];
  this.lastUsedDate = json['last_used_date'];
  this.isEnabled = json['is_enabled'];
  this.type = ProxyType.fromJson(json['type'] ?? <String, dynamic>{});
  this.extra = json['@extra'];
}