toJson method
Implementation
Map<String, Object?> toJson() {
var version = this.version;
var id = this.id;
var type = this.type;
var title = this.title;
var metadata = this.metadata;
var container = this.container;
final json = <String, Object?>{};
json[r'version'] = version.toJson();
json[r'id'] = id;
json[r'type'] = type.value;
if (title != null) {
json[r'title'] = title;
}
if (metadata != null) {
json[r'metadata'] = metadata.toJson();
}
if (container != null) {
json[r'container'] = container.toJson();
}
return json;
}