toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.cid != null) {
json[r'cid'] = this.cid;
} else {
json[r'cid'] = null;
}
json[r'connection_id'] = this.connectionId;
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
if (this.me != null) {
json[r'me'] = this.me;
} else {
json[r'me'] = null;
}
if (this.receivedAt != null) {
json[r'received_at'] = this.receivedAt!.toUtc().toIso8601String();
} else {
json[r'received_at'] = null;
}
json[r'type'] = this.type;
json[r'user'] = this.user;
return json;
}