# startMedicalCertificateScanner static method

Future<MedicalCertificateResult> startMedicalCertificateScanner(

1. MedicalCertificateScannerConfiguration config

)

Starts the Medical Certificate Scanner UI as full-screen modal UI dialog. Extract key-value-pair data from German Medical Certificates

## Implementation

    static Future<MedicalCertificateResult> startMedicalCertificateScanner(
        MedicalCertificateScannerConfiguration config) async {
      try {
        var updatedParameters = config.toJson();
        const defaultJsonName = "MedicalCertificateScreen";
        var configuration = await SharedCalls.applyParametersOnDefaultJson(
            defaultJsonName, updatedParameters);
        var result = await SharedCalls.invoke(
            _channel, 'startMedicalCertificateScanner', configuration);
        if (SharedCalls.wasCanceled(result)) {
          return MedicalCertificateResult.canceled();
        }
        return MedicalCertificateResult.fromJson(jsonDecode(result));
      } catch (e) {
        Logger.root.severe(e);
        return MedicalCertificateResult.error(e.toString());
      }
    }