toJson method
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
};