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