toJson method
Implementation
Map<String, Object?> toJson() {
var id = this.id;
var author = this.author;
var created = this.created;
var items = this.items;
var historyMetadata = this.historyMetadata;
final json = <String, Object?>{};
if (id != null) {
json[r'id'] = id;
}
if (author != null) {
json[r'author'] = author;
}
if (created != null) {
json[r'created'] = created.toIso8601String();
}
json[r'items'] = items.map((i) => i.toJson()).toList();
if (historyMetadata != null) {
json[r'historyMetadata'] = historyMetadata;
}
return json;
}