# PageData.fromJson constructor

PageData.fromJson(

1. Map<String, dynamic> json

)

## Implementation

    factory PageData.fromJson(Map<String, dynamic> json) => PageData(
          uuid: json["uuid"] as String,
          filters: json.containsKey("filters")
              ? (json["filters"] != null
                  ? (json["filters"] as List<dynamic>)
                      .map((it) =>
                          ParametricFilter.fromJson(it as Map<String, dynamic>))
                      .toList()
                  : null)
              : null,
          polygon: json.containsKey("polygon")
              ? (json["polygon"] as List<dynamic>)
                  .map((it) => Point<double>(
                      ((it as Map<String, dynamic>)["x"] as num).toDouble(),
                      ((it)["y"] as num).toDouble()))
                  .toList()
              : [],
          documentDetectionStatus: json.containsKey("documentDetectionStatus")
              ? (json["documentDetectionStatus"] != null
                  ? DocumentDetectionStatus.values
                      .byName(json["documentDetectionStatus"] as String)
                  : null)
              : null,
          documentQuality: json.containsKey("documentQuality")
              ? (json["documentQuality"] != null
                  ? DocumentQuality.values
                      .byName(json["documentQuality"] as String)
                  : null)
              : null,
          source: json.containsKey("source")
              ? (json["source"] != null
                  ? PageImageSource.values.byName(json["source"] as String)
                  : null)
              : null,
          originalImageURI: json["originalImageURI"] as String,
          documentImageURI: json.containsKey("documentImageURI")
              ? (json["documentImageURI"] != null
                  ? json["documentImageURI"] as String
                  : null)
              : null,
          unfilteredDocumentImageURI:
              json.containsKey("unfilteredDocumentImageURI")
                  ? (json["unfilteredDocumentImageURI"] != null
                      ? json["unfilteredDocumentImageURI"] as String
                      : null)
                  : null,
          documentImagePreviewURI: json.containsKey("documentImagePreviewURI")
              ? (json["documentImagePreviewURI"] != null
                  ? json["documentImagePreviewURI"] as String
                  : null)
              : null,
        );