# LicensePlateScannerResult.fromJson constructor

LicensePlateScannerResult.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory LicensePlateScannerResult.fromJson(Map<String, dynamic> json) =>
        LicensePlateScannerResult(
          countryCode: json["countryCode"] as String,
          licensePlate: json["licensePlate"] as String,
          rawText: json["rawText"] as String,
          confidence: json.containsKey("confidence")
              ? (json["confidence"] as num).toDouble()
              : 0.0,
          validationSuccessful: json.containsKey("validationSuccessful")
              ? (json["validationSuccessful"] as bool)
              : false,
          croppedImage: json.containsKey("croppedImage")
              ? (json["croppedImage"] != null
                  ? ImageRef.fromJson(
                      json["croppedImage"] as Map<String, dynamic>)
                  : null)
              : null,
        );