toJson method

Map<String, Object?> toJson()

Implementation

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

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