PublicDashboardResponse constructor

PublicDashboardResponse({
  1. Organization? organization,
  2. Iterable<Organization>? organizations,
  3. Collaboration? collaboration,
  4. Iterable<Collaboration>? collaborations,
  5. String? secret,
  6. ClientApp? connectApp,
  7. Iterable<ClientApp>? connectApps,
  8. Map<int, ConnectMetrics>? metrics,
})

Implementation

factory PublicDashboardResponse({
  Organization? organization,
  $core.Iterable<Organization>? organizations,
  Collaboration? collaboration,
  $core.Iterable<Collaboration>? collaborations,
  $core.String? secret,
  ClientApp? connectApp,
  $core.Iterable<ClientApp>? connectApps,
  $core.Map<$core.int, ConnectMetrics>? metrics,
}) {
  final _result = create();
  if (organization != null) {
    _result.organization = organization;
  }
  if (organizations != null) {
    _result.organizations.addAll(organizations);
  }
  if (collaboration != null) {
    _result.collaboration = collaboration;
  }
  if (collaborations != null) {
    _result.collaborations.addAll(collaborations);
  }
  if (secret != null) {
    _result.secret = secret;
  }
  if (connectApp != null) {
    _result.connectApp = connectApp;
  }
  if (connectApps != null) {
    _result.connectApps.addAll(connectApps);
  }
  if (metrics != null) {
    _result.metrics.addAll(metrics);
  }
  return _result;
}