toMap method
Converts the HVFaceConfig object to a map.
Returns a map containing the hvFaceConfig values.
Implementation
Map<String, dynamic> toMap() {
return {
HyperSnapSDKConstants.faceCaptureUIStrings:
hvFaceCaptureUIStrings?.toMap(),
HyperSnapSDKConstants.faceShouldShowTrustLogos: shouldShowTrustLogos,
HyperSnapSDKConstants.faceShouldShowInstructionPage:
shouldShowInstructionPage,
HyperSnapSDKConstants.faceShouldShowCameraSwitchButton:
shouldShowCameraSwitchButton,
HyperSnapSDKConstants.faceShouldUseBackCamera: shouldUseBackCamera,
HyperSnapSDKConstants.faceShouldAddPadding: shouldAddPadding,
HyperSnapSDKConstants.facePadding: padding?.toMap(),
HyperSnapSDKConstants.faceShouldShowCloseAlert: shouldShowCloseAlert,
HyperSnapSDKConstants.faceCloseAlertDialogTitle: closeAlertDialogTitle,
HyperSnapSDKConstants.faceCloseAlertDialogDesc:
closeAlertDialogDescription,
HyperSnapSDKConstants.faceAutoCapture: shouldAutoCapture,
HyperSnapSDKConstants.autoCaptureDuration: autoCaptureDuration,
HyperSnapSDKConstants.faceVideoRecording: videoRecordingConfig?.toMap(),
HyperSnapSDKConstants.checkActiveLiveness: shouldCheckActiveLiveness,
HyperSnapSDKConstants.totalGestures: totalGestures,
HyperSnapSDKConstants.livenessApiDetails: hvLivenessAPIDetails?.toMap(),
HyperSnapSDKConstants.faceShouldReturnFullImageUrl:
shouldReturnFullImageUrl,
HyperSnapSDKConstants.faceShouldHandleRetries: shouldEnableRetries,
};
}