toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.accountId != null) {
json[r'accountId'] = this.accountId;
} else {
json[r'accountId'] = null;
}
json[r'channel'] = this.channel;
json[r'text'] = this.text;
if (this.threadId != null) {
json[r'threadId'] = this.threadId;
} else {
json[r'threadId'] = null;
}
json[r'blocks'] = this.blocks;
return json;
}