toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var name = this.name;
  var description = this.description;
  var homepage = this.homepage;
  var type = this.type;
  var status = this.status;

  final json = <String, Object?>{};
  if (name != null) {
    json[r'name'] = name;
  }
  if (description != null) {
    json[r'description'] = description.toJson();
  }
  if (homepage != null) {
    json[r'homepage'] = homepage;
  }
  if (type != null) {
    json[r'type'] = type;
  }
  if (status != null) {
    json[r'status'] = status;
  }
  return json;
}