ScannedImage.fromMap constructor

ScannedImage.fromMap(
  1. Map<String, dynamic> json
)

Convert a map (json) to a ScannedImage instance.

Implementation

factory ScannedImage.fromMap(Map<String, dynamic> json) => ScannedImage(
      // rectangleCoordinates: json["rectangleCoordinates"] == null
      //     ? null
      //     : RectangleCoordinates.fromMap(json["rectangleCoordinates"]),
      croppedImage:
          json["croppedImage"] == null ? null : json["croppedImage"],
      width: json["width"] == null ? null : json["width"],
      initialImage:
          json["initialImage"] == null ? null : json["initialImage"],
      height: json["height"] == null ? null : json["height"],
    );