CallServer.fromJson constructor

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

Parses a CallServer from TDLib JSON.

Implementation

factory CallServer.fromJson(Map<String, dynamic> json) => CallServer(
      id: _readInt(json['id']),
      ipAddress: _readString(json['ip_address']),
      ipv6Address: _readString(json['ipv6_address']),
      port: _readInt(json['port']),
      type: _readObject(json['type'], CallServerType.fromJson),
    );