toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (email != null) {
_json[r'email'] = email;
}
if (push != null) {
_json[r'push'] = push;
}
if (desktop != null) {
_json[r'desktop'] = desktop;
}
if (desktopSound != null) {
_json[r'desktop_sound'] = desktopSound;
}
if (mentionKeys != null) {
_json[r'mention_keys'] = mentionKeys;
}
if (channel != null) {
_json[r'channel'] = channel;
}
if (firstName != null) {
_json[r'first_name'] = firstName;
}
return _json;
}