Created
August 4, 2020 13:54
-
-
Save ravindu9701/acedc7fe4fd78c869b54f0479de12bfb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Prediction { | |
final double confidence; | |
final int index; | |
final String label; | |
Prediction({this.confidence, this.index, this.label}); | |
factory Prediction.fromJson(Map<dynamic, dynamic> json) { | |
return Prediction( | |
confidence: json['confidence'], | |
index: json['index'], | |
label: json['label'], | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment