toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (detectBlurAndBrightSpot != null) 'detect_blur_and_bright_spot': detectBlurAndBrightSpot!.toJson(),
    if (difficultToRead != null) 'difficult_to_read': difficultToRead,
    if (entireDocumentNotInFrame != null) 'entire_document_not_in_frame': entireDocumentNotInFrame,
    if (documentType != null) 'document_type': documentType,
    if (wrongSide != null) 'wrong_side': wrongSide,
    if (fingerCover != null) 'finger_cover': fingerCover,
  };
}