toMap method
Implementation
Map<String, dynamic> toMap() {
var val = {
'objectID': objectID,
'type': type.toMap(),
'synonyms': synonyms,
'corrections': corrections,
'replacements': replacements,
'input': input,
'word': word,
'placeholder': placeholder,
};
val.removeWhere((key, value) => value == null);
return val;
}