toJson method

Map<String, Object?> toJson()

Implementation

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

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