# MedicalCertificateCheckBox.fromJson constructor

MedicalCertificateCheckBox.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory MedicalCertificateCheckBox.fromJson(Map<String, dynamic> json) =>
        MedicalCertificateCheckBox(
          type: json.containsKey("type")
              ? MedicalCertificateCheckBoxType.values
                  .byName(json["type"] as String)
              : MedicalCertificateCheckBoxType.UNKNOWN,
          checked:
              json.containsKey("checked") ? (json["checked"] as bool) : false,
          checkedConfidence: json.containsKey("checkedConfidence")
              ? (json["checkedConfidence"] as num).toDouble()
              : 0.0,
          quad: (json["quad"] as List<dynamic>)
              .map((it) => Point<double>(
                  ((it as Map<String, dynamic>)["x"] as num).toDouble(),
                  ((it)["y"] as num).toDouble()))
              .toList(),
        );