# GenericDocument constructor

GenericDocument({

1. required GenericDocumentType type,
2. required List<Field> fields,
3. required List<GenericDocument> children,
4. required List<Point<double>> quad,
5. required List<Point<double>> quadInRoot,
6. ImageRef? crop,
7. double confidence = 0.0,
8. double confidenceWeight = 0.0,

})

## Implementation

    GenericDocument({
      required this.type,
      required this.fields,
      required this.children,
      required this.quad,
      required this.quadInRoot,
      ImageRef? crop,
      this.confidence = 0.0,
      this.confidenceWeight = 0.0,
    }) : crop = crop ?? null;