ServerInfo.fromJson constructor

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

Implementation

ServerInfo.fromJson(Map<String, dynamic> json) {
  ipExternal = json['ip_external'];
  portOpened = json['port_opened'] != null
      ? PortOpened.fromJson(json['port_opened'])
      : null;
  platform = json['platform'];
  fileserverIp = json['fileserver_ip'];
  fileserverPort = json['fileserver_port'];
  torEnabled = json['tor_enabled'];
  torStatus = json['tor_status'];
  torHasMeekBridges = json['tor_has_meek_bridges'];
  torUseBridges = json['tor_use_bridges'];
  uiIp = json['ui_ip'];
  uiPort = json['ui_port'];
  version = json['version'];
  rev = json['rev'];
  timecorrection = json['timecorrection'];
  language = json['language'];
  debug = json['debug'];
  offline = json['offline'];
  plugins = json['plugins'].cast<String>();
  pluginsRev = json['plugins_rev'] != null
      ? PluginsRev.fromJson(json['plugins_rev'])
      : null;
  userSettings = json['user_settings'] != null
      ? UserSettings.fromJson(json['user_settings'])
      : null;
  updatesite = json['updatesite'];
  distType = json['dist_type'];
  libVerifyBest = json['lib_verify_best'];
}