# MedicalCertificateScanningParameters.fromJson constructor

MedicalCertificateScanningParameters.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory MedicalCertificateScanningParameters.fromJson(
            Map<String, dynamic> json) =>
        MedicalCertificateScanningParameters(
          shouldCropDocument: json.containsKey("shouldCropDocument")
              ? (json["shouldCropDocument"] as bool)
              : true,
          recognizePatientInfoBox: json.containsKey("recognizePatientInfoBox")
              ? (json["recognizePatientInfoBox"] as bool)
              : true,
          recognizeBarcode: json.containsKey("recognizeBarcode")
              ? (json["recognizeBarcode"] as bool)
              : true,
          extractCroppedImage: json.containsKey("extractCroppedImage")
              ? (json["extractCroppedImage"] as bool)
              : false,
          preprocessInput: json.containsKey("preprocessInput")
              ? (json["preprocessInput"] as bool)
              : false,
        );