toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var spaceId = this.spaceId;
  var status = this.status;
  var title = this.title;
  var parentId = this.parentId;
  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 (parentId != null) {
    json[r'parentId'] = parentId;
  }
  if (body != null) {
    json[r'body'] = body;
  }
  return json;
}