toJson method
Implementation
Map<String, Object?> toJson() {
var id = this.id;
var title = this.title;
var type = this.type;
var space = this.space;
var status = this.status;
var container = this.container;
var ancestors = this.ancestors;
var body = this.body;
final json = <String, Object?>{};
if (id != null) {
json[r'id'] = id;
}
if (title != null) {
json[r'title'] = title;
}
json[r'type'] = type;
if (space != null) {
json[r'space'] = space.toJson();
}
if (status != null) {
json[r'status'] = status.value;
}
if (container != null) {
json[r'container'] = container.toJson();
}
json[r'ancestors'] = ancestors.map((i) => i.toJson()).toList();
if (body != null) {
json[r'body'] = body.toJson();
}
return json;
}