toJson method
Implementation
Map<String, dynamic> toJson() => {
"attempt": attempt,
"detectionResult":
List<dynamic>.from(detectionResult.map((x) => x.toJson())),
"errorMessage": errorMessage,
"isSuccess": isSuccess,
"totalTimeMilis": totalTimeMilis,
};