StatusReport.fromJson constructor
StatusReport.fromJson(
- Map<String, dynamic> map
)
Implementation
StatusReport.fromJson(Map<String, dynamic> map)
: this.bitRateRcv = "${map['bitRateRcv']}",
this.bitRateSend = "${map['bitRateSend']}",
this.googAvailableReceiveBandwidth = "${map['googAvailableReceiveBandwidth']}",
this.googAvailableSendBandwidth = "${map['googAvailableSendBandwidth']}",
this.ipAddress = map.containsKey('ipAddress') ? map['ipAddress'] : 'Unknown',
this.networkType = "${map['networkType']}",
this.packetsDiscardedOnSend = "${map['packetsDiscardedOnSend']}",
this.rtt = "${map['rtt']}" {
Map<String, dynamic> jsonAudioRcvs = map['statusAudioRcvs'];
jsonAudioRcvs.forEach((key, value) {
this.statusAudioRcvs.putIfAbsent(key, () => StatusBean.fromJson(value));
});
Map<String, dynamic> jsonAudioSends = map['statusAudioSends'];
jsonAudioSends.forEach((key, value) {
this.statusAudioSends.putIfAbsent(key, () => StatusBean.fromJson(value));
});
Map<String, dynamic> jsonVideoRcvs = map['statusVideoRcvs'];
jsonVideoRcvs.forEach((key, value) {
this.statusVideoRcvs.putIfAbsent(key, () => StatusBean.fromJson(value));
});
Map<String, dynamic> jsonVideoSends = map['statusVideoSends'];
jsonVideoSends.forEach((key, value) {
this.statusVideoSends.putIfAbsent(key, () => StatusBean.fromJson(value));
});
}