All checks were successful
Flutter Schmutter / build (push) Successful in 3m45s
- search schmearch
20 lines
386 B
Dart
20 lines
386 B
Dart
class Suggestion {
|
|
final String tag;
|
|
final int tagged;
|
|
final double score;
|
|
|
|
Suggestion({
|
|
required this.tag,
|
|
required this.tagged,
|
|
required this.score,
|
|
});
|
|
|
|
factory Suggestion.fromJson(Map<String, dynamic> json) {
|
|
return Suggestion(
|
|
tag: json['tag'].toString(),
|
|
tagged: json['tagged'],
|
|
score: (json['score'] as num).toDouble(),
|
|
);
|
|
}
|
|
}
|