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