Transports.fromJson constructor Null safety

Transports.fromJson(
  1. dynamic json
)

Implementation

Transports.fromJson(dynamic json) {
  _janustransporthttp = json['janus.transport.http'] != null
      ? JanusTransportHttp.fromJson(json['janus.transport.http'])
      : null;
  _janustransportnanomsg = json['janus.transport.nanomsg'] != null
      ? JanusTransportNanomsg.fromJson(json['janus.transport.nanomsg'])
      : null;
  _janustransportwebsockets = json['janus.transport.websockets'] != null
      ? JanusTransportWebsockets.fromJson(json['janus.transport.websockets'])
      : null;
}