toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
if (hookId != null) {
_json[r'hook_id'] = hookId;
}
_json[r'channel_id'] = channelId;
_json[r'display_name'] = displayName;
_json[r'description'] = description;
if (username != null) {
_json[r'username'] = username;
}
if (iconUrl != null) {
_json[r'icon_url'] = iconUrl;
}
return _json;
}