# toJson method

Map<String, dynamic> toJson({

1. ToJsonConfiguration? config,

})

## Implementation

    Map<String, dynamic> toJson({ToJsonConfiguration? config}) {
      config = config ?? ToJsonConfiguration();
      Map<String, dynamic> obj = <String, dynamic>{};
      obj["uuid"] = uuid;
      obj["filters"] = (filters != null
          ? filters!.map((it) => it.toJson(config: config)).toList()
          : null);
      obj["polygon"] = polygon.map((it) => {"x": it.x, "y": it.y}).toList();
      obj["documentDetectionStatus"] = (documentDetectionStatus != null
          ? documentDetectionStatus!.name
          : null);
      obj["documentQuality"] =
          (documentQuality != null ? documentQuality!.name : null);
      obj["source"] = (source != null ? source!.name : null);
      obj["originalImageURI"] = originalImageURI;
      obj["documentImageURI"] =
          (documentImageURI != null ? documentImageURI! : null);
      obj["unfilteredDocumentImageURI"] = (unfilteredDocumentImageURI != null
          ? unfilteredDocumentImageURI!
          : null);
      obj["documentImagePreviewURI"] =
          (documentImagePreviewURI != null ? documentImagePreviewURI! : null);
      return obj;
    }