- search schmearch
This commit is contained in:
		@@ -3,12 +3,16 @@ class Suggestion {
 | 
			
		||||
  final int tagged;
 | 
			
		||||
  final double score;
 | 
			
		||||
 | 
			
		||||
  Suggestion({required this.tag, required this.tagged, required this.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: int.tryParse(json['tagged'].toString()) ?? 0,
 | 
			
		||||
      tagged: json['tagged'],
 | 
			
		||||
      score: (json['score'] as num).toDouble(),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user