# MedicalCertificateScanningResult.fromJson constructor

MedicalCertificateScanningResult.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory MedicalCertificateScanningResult.fromJson(
            Map<String, dynamic> json) =>
        MedicalCertificateScanningResult(
          scanningSuccessful: json.containsKey("scanningSuccessful")
              ? (json["scanningSuccessful"] as bool)
              : false,
          patientInfoBox: MedicalCertificatePatientInfoBox.fromJson(
              json["patientInfoBox"] as Map<String, dynamic>),
          checkBoxes: (json["checkBoxes"] as List<dynamic>)
              .map((it) =>
                  MedicalCertificateCheckBox.fromJson(it as Map<String, dynamic>))
              .toList(),
          dates: (json["dates"] as List<dynamic>)
              .map((it) => MedicalCertificateDateRecord.fromJson(
                  it as Map<String, dynamic>))
              .toList(),
          formType: json.containsKey("formType")
              ? MedicalCertificateFormType.values
                  .byName(json["formType"] as String)
              : MedicalCertificateFormType.UNKNOWN,
          clockwiseRotations: json.containsKey("clockwiseRotations")
              ? (json["clockwiseRotations"] as int)
              : 0,
          croppedImage: json.containsKey("croppedImage")
              ? (json["croppedImage"] != null
                  ? ImageRef.fromJson(
                      json["croppedImage"] as Map<String, dynamic>)
                  : null)
              : null,
          scaleX: json.containsKey("scaleX")
              ? (json["scaleX"] as num).toDouble()
              : 1.0,
          scaleY: json.containsKey("scaleY")
              ? (json["scaleY"] as num).toDouble()
              : 1.0,
          documentDetectionResult: (json["documentDetectionResult"] != null
              ? DocumentDetectionResult.fromJson(
                  json["documentDetectionResult"] as Map<String, dynamic>)
              : null),
        );