toMap method

Map<String, dynamic> toMap()

Convert options to a map for platform channel

Implementation

Map<String, dynamic> toMap() {
  return {
    'flow': 'identification',
    'ellipseScreenEnabled': ellipseScreenEnabled,
    'showUserInformation': showUserInformation,
    'showTimeInformation': showTimeInformation,
    'keepIdentification': keepIdentification,
    'cameraPosition':
        cameraPosition == SmartfaceCameraPosition.front ? 'front' : 'back',
    'saveImage': saveImage,
    'identifyTimeout': identifyTimeout.inSeconds.toDouble(),
    'enableCheckImageQuality': enableCheckImageQuality,
    'securityLevel': securityLevel,
    'livenessEnabled': livenessEnabled,
    'livenessThreshold': livenessThreshold,
    'vibratorEnabled': vibratorEnabled,
  };
}