toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
json[r'custom'] = this.custom;
json[r'message_id'] = this.messageId;
json[r'score'] = this.score;
json[r'type'] = this.type;
json[r'updated_at'] = this.updatedAt.toUtc().toIso8601String();
if (this.user != null) {
json[r'user'] = this.user;
} else {
json[r'user'] = null;
}
if (this.userId != null) {
json[r'user_id'] = this.userId;
} else {
json[r'user_id'] = null;
}
return json;
}