HMSLocalVideoStats.fromMap constructor
HMSLocalVideoStats.fromMap(
- Map map
Implementation
factory HMSLocalVideoStats.fromMap(Map map) {
return HMSLocalVideoStats(
roundTripTime: map["round_trip_time"] ?? 0.00,
bytesSent: map["bytes_sent"] ?? 0,
bitrate: map["bitrate"] ?? 0.00,
frameRate: map["frame_rate"] ?? 0.0,
resolution: map['resolution'] == null
? HMSResolution(height: 0, width: 0)
: HMSResolution.fromMap(map['resolution']),
hmsQualityLimitationReasons:
map.containsKey("quality_limitation_reason")
? HMSQualityLimitationReasons.fromMap(
map["quality_limitation_reason"])
: null,
hmsLayer: map.containsKey("hms_layer")
? HMSSimulcastLayerValue.getHMSSimulcastLayerFromName(
map["hms_layer"])
: null);
}