# CreditCardScanningResult.fromJson constructor

CreditCardScanningResult.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory CreditCardScanningResult.fromJson(Map<String, dynamic> json) =>
        CreditCardScanningResult(
          detectionStatus: DocumentDetectionStatus.values
              .byName(json["detectionStatus"] as String),
          scanningStatus: CreditCardScanningStatus.values
              .byName(json["scanningStatus"] as String),
          creditCard: (json["creditCard"] != null
              ? GenericDocument.fromJson(
                  json["creditCard"] as Map<String, dynamic>)
              : null),
          quad: (json["quad"] as List<dynamic>)
              .map((it) => Point<int>(
                  ((it as Map<String, dynamic>)["x"] as int), ((it)["y"] as int)))
              .toList(),
          quadNormalized: (json["quadNormalized"] as List<dynamic>)
              .map((it) => Point<double>(
                  ((it as Map<String, dynamic>)["x"] as num).toDouble(),
                  ((it)["y"] as num).toDouble()))
              .toList(),
        );