# MedicalCertificateDateRecord.fromJson constructor

MedicalCertificateDateRecord.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory MedicalCertificateDateRecord.fromJson(Map<String, dynamic> json) =>
        MedicalCertificateDateRecord(
          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(),
          value: json.containsKey("value") ? json["value"] as String : "",
          rawString:
              json.containsKey("rawString") ? json["rawString"] as String : "",
          type: json.containsKey("type")
              ? MedicalCertificateDateRecordType.values
                  .byName(json["type"] as String)
              : MedicalCertificateDateRecordType.UNDEFINED,
          recognitionConfidence: json.containsKey("recognitionConfidence")
              ? (json["recognitionConfidence"] as num).toDouble()
              : 0.0,
        );