DetectionResult.fromJson constructor

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

Implementation

factory DetectionResult.fromJson(Map<String, dynamic> json) =>
    DetectionResult(
      detectionMode: json["detectionMode"],
      imagePath: json["imagePath"].toString(),
      timeMilis: json["timeMilis"] ?? 1000,
    );