ExtraData.fromJson constructor

ExtraData.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ExtraData.fromJson(Map<String, dynamic> json) {
  return ExtraData(
    detectBlurAndBrightSpot: json['detect_blur_and_bright_spot'] != null
        ? DetectBlurAndBrightSpot.fromJson(json['detect_blur_and_bright_spot'])
        : null,
    difficultToRead: json['difficult_to_read'],
    entireDocumentNotInFrame: json['entire_document_not_in_frame'],
    documentType: json['document_type'],
    wrongSide: json['wrong_side'],
    fingerCover: json['finger_cover'],
  );
}