toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var description = this.description;
  var id = this.id;
  var name = this.name;
  var statusCategory = this.statusCategory;
  var statusReference = this.statusReference;

  final json = <String, Object?>{};
  if (description != null) {
    json[r'description'] = description;
  }
  if (id != null) {
    json[r'id'] = id;
  }
  json[r'name'] = name;
  json[r'statusCategory'] = statusCategory.value;
  json[r'statusReference'] = statusReference;
  return json;
}