toMap method
Implementation
Map<String, dynamic> toMap() {
Map<String, dynamic> map = {};
if (joined != null) {
map['joined'] = joined;
}
if (members != null) {
map['members'] = members;
}
if (unreads != null) {
map['unreads'] = unreads;
}
if (unreadsFrom != null) {
map['unreadsFrom'] = unreadsFrom!.toIso8601String();
}
if (msgs != null) {
map['msgs'] = msgs;
}
if (latest != null) {
map['latest'] = latest!.toIso8601String();
}
if (userMentions != null) {
map['userMentions'] = userMentions;
}
if (success != null) {
map['success'] = success;
}
return map;
}