toMap method Null safety
Implementation
Map<String, dynamic> toMap() {
return {
'codec': HMSCodecValues.getValueFromHMSCodec(codec),
'bit_rate': maxBitrate,
'max_frame_rate': maxFrameRate,
'track_description': trackDescription,
'resolution': resolution?.toMap(),
'camera_facing':
HMSCameraFacingValues.getValueFromHMSCameraFacing(cameraFacing)
};
}