fromMap static method

AcuantDocumentImage? fromMap(
  1. Map data
)

Implementation

static AcuantDocumentImage? fromMap(Map data) {
  print("AcuantDocumentImage? fromMap");
  print(data);
  try {
    return AcuantDocumentImage(
      rawBytes: data["RAW_BYTES"],
      aspectRatio: data["ASPECT_RATIO"],
      dpi: data["DPI"],
      glare: data["GLARE"],
      isCorrectAspectRatio: data["IS_CORRECT_ASPECT_RATIO"],
      isPassport: data["IS_PASSPORT"],
      sharpness: data["SHARPNESS"],
    );
  } catch (e) {
    print(e);
    return null;
  }
}