toMap method
Implementation
Map<String, dynamic> toMap() {
var map = {
'cred': cred,
'what': what,
'data': data != null ? data?.toMap() : null,
'del': del != null ? del?.toMap() : null,
'desc': desc != null ? desc?.toMap() : null,
'sub': sub != null ? sub?.toMap() : null,
'tags': tags,
};
map.removeWhere((key, value) => value == null);
return map;
}