toJson method

  1. @override
Map<String, dynamic> toJson()
override

Serializes the TermSimilarity to Map<String, dynamic>.

Implementation

@override
Map<String, dynamic> toJson() => {
      'term': term,
      'other': other,
      'characterSimilarity': characterSimilarity,
      'editDistance': editDistance,
      'editSimilarity': editSimilarity,
      'lengthDistance': lengthDistance,
      'lengthSimilarity': lengthSimilarity,
      'jaccardSimilarity': jaccardSimilarity,
      'similarity': similarity
    };