toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (self != null) {
    json[r'self'] = self;
  }
  if (members != null) {
    json[r'members'] = members;
  }
  if (owners != null) {
    json[r'owners'] = owners;
  }
  if (labels != null) {
    json[r'labels'] = labels;
  }
  if (secrets != null) {
    json[r'secrets'] = secrets;
  }
  if (buckets != null) {
    json[r'buckets'] = buckets;
  }
  if (tasks != null) {
    json[r'tasks'] = tasks;
  }
  if (dashboards != null) {
    json[r'dashboards'] = dashboards;
  }
  return json;
}