toJson method
Implementation
Map<String, bool> toJson() => {
'face': face,
'leftArm': leftArm,
'rightArm': rightArm,
"leftWrist": leftWrist,
"rightWrist": rightWrist,
'torso': torso,
'leftLeg': leftLeg,
'rightLeg': rightLeg,
"leftAnkle": leftAnkle,
"rightAnkle": rightAnkle,
"isFrontCamera": cameraFacing == CameraFacing.front,
"isPortrait": cameraOrientation == CameraOrientation.portrait
};