Info.fromJson constructor

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

constructure from json

Implementation

Info.fromJson(Map<String, dynamic> json) {
  serverId = json['server_id'];
  serverName = json['server_name'];
  version = json['version'];
  proto = json['proto'];
  go = json['go'];
  host = json['host'];
  port = json['port'];
  tlsRequired = json['tls_required'];
  maxPayload = json['max_payload'];
  nonce = json['nonce'];
  clientId = json['client_id'];
}