toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.account != null) {
json[r'account'] = this.account;
} else {
json[r'account'] = null;
}
if (this.channel != null) {
json[r'channel'] = this.channel;
} else {
json[r'channel'] = null;
}
if (this.createdAt != null) {
json[r'createdAt'] = this.createdAt;
} else {
json[r'createdAt'] = null;
}
if (this.id != null) {
json[r'id'] = this.id;
} else {
json[r'id'] = null;
}
if (this.replyTo != null) {
json[r'replyTo'] = this.replyTo;
} else {
json[r'replyTo'] = null;
}
if (this.roomId != null) {
json[r'roomId'] = this.roomId;
} else {
json[r'roomId'] = null;
}
if (this.roomKind != null) {
json[r'roomKind'] = this.roomKind;
} else {
json[r'roomKind'] = null;
}
if (this.sender != null) {
json[r'sender'] = this.sender;
} else {
json[r'sender'] = null;
}
if (this.senderUser != null) {
json[r'senderUser'] = this.senderUser;
} else {
json[r'senderUser'] = null;
}
if (this.text != null) {
json[r'text'] = this.text;
} else {
json[r'text'] = null;
}
return json;
}