toJson method
Implementation
Map<String, dynamic> toJson() {
return {
if (targetDistanceRatio != null)
'targetDistanceRatio': targetDistanceRatio,
if (faceCropPaddingRatio != null)
'faceCropPaddingRatio': faceCropPaddingRatio,
if (useVideoIdentification != null)
'useVideoIdentification': useVideoIdentification,
if (progressIndicatorEnabled != null)
'progressIndicatorEnabled': progressIndicatorEnabled,
if (reasonMessageEnabled != null)
'reasonMessageEnabled': reasonMessageEnabled,
if (countdownEnabled != null) 'countdownEnabled': countdownEnabled,
if (infoboxText != null) 'infoboxText': infoboxText,
};
}