Result class

Result class will be used to store the data received from the "result" key from the API response. It will consist of message, input, prediction, requestFileId etc data about the given input and output.

Constructors

Result({required String? message, required String? input, required List<Prediction> prediction, required int? page, required String? requestFileId, required String? filepath, required String? id, required int? rotation, required String? fileUrl, required String? requestMetadata, required String? processingType})
Result.fromJson(Map<String, dynamic> json)
factory

Properties

filepath String?
filepath contains path of the uploaded file in nanonets.
final
fileUrl String?
fileUrl contains uploaded file path in raw predictions.
final
hashCode int
The hash code for this object.
no setterinherited
id String?
id stores id of the result.
final
input String?
input will store the value of input image file or url.
final
message String?
message will contain success message from the API.
final
page int?
page tells about the page of the result.
final
prediction List<Prediction>
prediction is the main output list, here the predicted fields will be stored.
final
processingType String?
processingType contains the type of processing of the requested file.
final
requestFileId String?
requestFileId contains Id of requet file.
final
requestMetadata String?
requestMetadata conatins metadata of request file or url.
final
rotation int?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited