Proxy.fromJson constructor

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

Parses a Proxy from TDLib JSON.

Implementation

factory Proxy.fromJson(Map<String, dynamic> json) => Proxy(
  server: _readString(json['server']),
  port: _readInt(json['port']),
  type: _readObject(json['type'], ProxyType.fromJson),
);