Result.fromJson constructor

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

Implementation

factory Result.fromJson(Map<String, dynamic> json) {
  return Result(
    message: json["message"],
    input: json["input"],
    prediction: json["prediction"] == null
        ? []
        : List<Prediction>.from(
            json["prediction"]!.map((x) => Prediction.fromJson(x))),
    page: json["page"],
    requestFileId: json["request_file_id"],
    filepath: json["filepath"],
    id: json["id"],
    rotation: json["rotation"],
    fileUrl: json["file_url"],
    requestMetadata: json["request_metadata"],
    processingType: json["processing_type"],
  );
}