CloudResponse constructor

CloudResponse({
  1. Project? project,
  2. Iterable<Project>? projects,
  3. String? accessToken,
  4. Organization? organization,
  5. Member? member,
  6. Iterable<Member>? members,
  7. Iterable<Organization>? organizations,
  8. Partner? partner,
  9. Iterable<Partner>? partners,
  10. Map<String, String>? publicKeys,
  11. App? app,
  12. Iterable<App>? apps,
})

Implementation

factory CloudResponse({
  Project? project,
  $core.Iterable<Project>? projects,
  $core.String? accessToken,
  Organization? organization,
  Member? member,
  $core.Iterable<Member>? members,
  $core.Iterable<Organization>? organizations,
  Partner? partner,
  $core.Iterable<Partner>? partners,
  $core.Map<$core.String, $core.String>? publicKeys,
  $1.App? app,
  $core.Iterable<$1.App>? apps,
}) {
  final _result = create();
  if (project != null) {
    _result.project = project;
  }
  if (projects != null) {
    _result.projects.addAll(projects);
  }
  if (accessToken != null) {
    _result.accessToken = accessToken;
  }
  if (organization != null) {
    _result.organization = organization;
  }
  if (member != null) {
    _result.member = member;
  }
  if (members != null) {
    _result.members.addAll(members);
  }
  if (organizations != null) {
    _result.organizations.addAll(organizations);
  }
  if (partner != null) {
    _result.partner = partner;
  }
  if (partners != null) {
    _result.partners.addAll(partners);
  }
  if (publicKeys != null) {
    _result.publicKeys.addAll(publicKeys);
  }
  if (app != null) {
    _result.app = app;
  }
  if (apps != null) {
    _result.apps.addAll(apps);
  }
  return _result;
}