JanusClientInfo.fromJson constructor Null safety

JanusClientInfo.fromJson(
  1. dynamic json
)

Implementation

JanusClientInfo.fromJson(dynamic json) {
  _janus = json['janus'];
  _transaction = json['transaction'];
  _name = json['name'];
  _version = json['version'];
  _versionString = json['version_string'];
  _author = json['author'];
  _commithash = json['commit-hash'];
  _compiletime = json['compile-time'];
  _logtostdout = json['log-to-stdout'];
  _logtofile = json['log-to-file'];
  _dataChannels = json['data_channels'];
  _acceptingnewsessions = json['accepting-new-sessions'];
  _sessiontimeout = json['session-timeout'];
  _reclaimsessiontimeout = json['reclaim-session-timeout'];
  _candidatestimeout = json['candidates-timeout'];
  _servername = json['server-name'];
  _localip = json['local-ip'];
  _ipv6 = json['ipv6'];
  _ipv6linklocal = json['ipv6-link-local'];
  _icelite = json['ice-lite'];
  _icetcp = json['ice-tcp'];
  _icenomination = json['ice-nomination'];
  _icekeepaliveconncheck = json['ice-keepalive-conncheck'];
  _fulltrickle = json['full-trickle'];
  _mdnsenabled = json['mdns-enabled'];
  _minnackqueue = json['min-nack-queue'];
  _nackoptimizations = json['nack-optimizations'];
  _twccperiod = json['twcc-period'];
  _dtlsmtu = json['dtls-mtu'];
  _staticeventloops = json['static-event-loops'];
  _loopindication = json['loop-indication'];
  _apiSecret = json['api_secret'];
  _authToken = json['auth_token'];
  _eventHandlers = json['event_handlers'];
  _opaqueidInApi = json['opaqueid_in_api'];
  _dependencies = json['dependencies'] != null
      ? Dependencies.fromJson(json['dependencies'])
      : null;
  _transports = json['transports'] != null
      ? Transports.fromJson(json['transports'])
      : null;
  _events = json['events'];
  _loggers = json['loggers'];
  _plugins =
      json['plugins'] != null ? Plugins.fromJson(json['plugins']) : null;
}