toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
if (this.targetUser != null) {
json[r'target_user'] = this.targetUser;
} else {
json[r'target_user'] = null;
}
json[r'target_users'] = this.targetUsers;
json[r'type'] = this.type;
if (this.user != null) {
json[r'user'] = this.user;
} else {
json[r'user'] = null;
}
return json;
}