ImageAnalysisResult constructor

ImageAnalysisResult(
  1. Map<String, dynamic> nativeImageAnalysisResult
)

Implementation

ImageAnalysisResult(Map<String, dynamic> nativeImageAnalysisResult) {
    this.documentImageColorStatus = DocumentImageColorStatus.values[nativeImageAnalysisResult['documentImageColorStatus']];
    this.documentImageMoireStatus = ImageAnalysisDetectionStatus.values[nativeImageAnalysisResult['documentImageMoireStatus']];
    this.faceDetectionStatus = ImageAnalysisDetectionStatus.values[nativeImageAnalysisResult['faceDetectionStatus']];
    this.mrzDetectionStatus = ImageAnalysisDetectionStatus.values[nativeImageAnalysisResult['mrzDetectionStatus']];
    this.barcodeDetectionStatus = ImageAnalysisDetectionStatus.values[nativeImageAnalysisResult['barcodeDetectionStatus']];
    this.cardRotation = CardRotation.values[nativeImageAnalysisResult['cardRotation']];
    this.cardOrientation = CardOrientation.values[nativeImageAnalysisResult['cardOrientation']];
    this.realIdDetectionStatus = ImageAnalysisDetectionStatus.values[nativeImageAnalysisResult['realIdDetectionStatus']];
    this.blurDetected = nativeImageAnalysisResult['blurDetected'];
    this.glareDetected = nativeImageAnalysisResult['glareDetected'];
}