toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
json[r'delete_conversation_channels'] = this.deleteConversationChannels;
json[r'hard_delete'] = this.hardDelete;
json[r'mark_messages_deleted'] = this.markMessagesDeleted;
json[r'type'] = this.type;
if (this.user != null) {
json[r'user'] = this.user;
} else {
json[r'user'] = null;
}
return json;
}