# DocumentQualityAnalyzerResult.fromJson constructor

DocumentQualityAnalyzerResult.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory DocumentQualityAnalyzerResult.fromJson(Map<String, dynamic> json) =>
        DocumentQualityAnalyzerResult(
          documentFound: (json["documentFound"] as bool),
          quality: (json["quality"] != null
              ? DocumentQuality.values.asNameMap()[json["quality"] as String]
              : null),
          orientation: (json["orientation"] != null
              ? (json["orientation"] as num).toDouble()
              : null),
          cumulativeQualityHistogram:
              (json["cumulativeQualityHistogram"] as List<dynamic>)
                  .map((it) => (it as int))
                  .toList(),
          qualityHeatmap: json.containsKey("qualityHeatmap")
              ? (json["qualityHeatmap"] != null
                  ? ImageRef.fromJson(
                      json["qualityHeatmap"] as Map<String, dynamic>)
                  : null)
              : null,
        );