toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.command != null) {
json[r'command'] = this.command;
} else {
json[r'command'] = null;
}
if (this.event != null) {
json[r'event'] = this.event;
} else {
json[r'event'] = null;
}
if (this.forwarded != null) {
json[r'forwarded'] = this.forwarded;
} else {
json[r'forwarded'] = null;
}
return json;
}