toJson method

Map<String, Object?> toJson()

Implementation

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

  final json = <String, Object?>{};
  if (description != null) {
    json[r'description'] = description;
  }
  json[r'isDefault'] = isDefault;
  json[r'members'] = members.map((i) => i.toJson()).toList();
  json[r'name'] = name;
  return json;
}