Skip to content

Instantly share code, notes, and snippets.

@ravindu9701
Created August 4, 2020 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravindu9701/acedc7fe4fd78c869b54f0479de12bfb to your computer and use it in GitHub Desktop.
Save ravindu9701/acedc7fe4fd78c869b54f0479de12bfb to your computer and use it in GitHub Desktop.
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