DocumentScannerScreens.fromJson constructor
DocumentScannerScreens.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DocumentScannerScreens.fromJson(Map<String, dynamic> json) =>
DocumentScannerScreens(
camera: json.containsKey("camera")
? CameraScreenConfiguration.fromJson(
json["camera"] as Map<String, dynamic>)
: CameraScreenConfiguration(),
review: json.containsKey("review")
? ReviewScreenConfiguration.fromJson(
json["review"] as Map<String, dynamic>)
: ReviewScreenConfiguration(),
cropping: json.containsKey("cropping")
? CroppingScreenConfiguration.fromJson(
json["cropping"] as Map<String, dynamic>)
: CroppingScreenConfiguration(),
reorderPages: json.containsKey("reorderPages")
? ReorderPagesScreenConfiguration.fromJson(
json["reorderPages"] as Map<String, dynamic>)
: ReorderPagesScreenConfiguration(),
);