toJson method
Implementation
Map<String, Object?> toJson() {
var associatedItems = this.associatedItems;
var authorKey = this.authorKey;
var category = this.category;
var changedValues = this.changedValues;
var created = this.created;
var description = this.description;
var eventSource = this.eventSource;
var id = this.id;
var objectItem = this.objectItem;
var remoteAddress = this.remoteAddress;
var summary = this.summary;
final json = <String, Object?>{};
json[r'associatedItems'] = associatedItems.map((i) => i.toJson()).toList();
if (authorKey != null) {
json[r'authorKey'] = authorKey;
}
if (category != null) {
json[r'category'] = category;
}
json[r'changedValues'] = changedValues.map((i) => i.toJson()).toList();
if (created != null) {
json[r'created'] = created.toIso8601String();
}
if (description != null) {
json[r'description'] = description;
}
if (eventSource != null) {
json[r'eventSource'] = eventSource;
}
if (id != null) {
json[r'id'] = id;
}
if (objectItem != null) {
json[r'objectItem'] = objectItem.toJson();
}
if (remoteAddress != null) {
json[r'remoteAddress'] = remoteAddress;
}
if (summary != null) {
json[r'summary'] = summary;
}
return json;
}