toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return <String, dynamic>{
    'description': description,
    'matchedKeywords': matchedKeywords?.map((Word x) => x.toMap()).toList(),
    'matchedWords': matchedWords?.map((Word x) => x.toMap()).toList(),
  };
}