Project constructor

Project({
  1. String? id,
  2. String? name,
  3. String? apiKey,
  4. ProjectState? state,
  5. Timestamp? createdAt,
  6. Timestamp? updatedAt,
  7. Timestamp? apiKeyGeneratedAt,
  8. Timestamp? apiKeySecuredAt,
  9. bool? apiKeySecured,
  10. bool? computeConfigured,
  11. bool? databaseConfigured,
  12. bool? storageConfigured,
  13. bool? heraConfigured,
  14. bool? mercuryConfigured,
  15. bool? plutoConfigured,
  16. String? endpoint,
  17. Map<String, OidcProvider>? oidcProviders,
  18. Map<String, EmailProvider>? emailProviders,
  19. EmailProviderType? selectedEmailProvider,
  20. Map<String, TextProvider>? textProviders,
  21. TextProviderType? selectedTextProvider,
  22. bool? emailConfigured,
  23. bool? textConfigured,
  24. Iterable<Member>? members,
})

Implementation

factory Project({
  $core.String? id,
  $core.String? name,
  $core.String? apiKey,
  $3.Image? logo,
  ProjectState? state,
  $2.Timestamp? createdAt,
  $2.Timestamp? updatedAt,
  $2.Timestamp? apiKeyGeneratedAt,
  $2.Timestamp? apiKeySecuredAt,
  $core.bool? apiKeySecured,
  $core.bool? computeConfigured,
  $core.bool? databaseConfigured,
  $core.bool? storageConfigured,
  $core.bool? heraConfigured,
  $core.bool? mercuryConfigured,
  $core.bool? plutoConfigured,
  $core.String? endpoint,
  $core.Map<$core.String, $0.OidcProvider>? oidcProviders,
  $core.Map<$core.String, EmailProvider>? emailProviders,
  EmailProviderType? selectedEmailProvider,
  $core.Map<$core.String, TextProvider>? textProviders,
  TextProviderType? selectedTextProvider,
  $core.bool? emailConfigured,
  $core.bool? textConfigured,
  $core.Iterable<Member>? members,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (name != null) {
    _result.name = name;
  }
  if (apiKey != null) {
    _result.apiKey = apiKey;
  }
  if (logo != null) {
    _result.logo = logo;
  }
  if (state != null) {
    _result.state = state;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  if (apiKeyGeneratedAt != null) {
    _result.apiKeyGeneratedAt = apiKeyGeneratedAt;
  }
  if (apiKeySecuredAt != null) {
    _result.apiKeySecuredAt = apiKeySecuredAt;
  }
  if (apiKeySecured != null) {
    _result.apiKeySecured = apiKeySecured;
  }
  if (computeConfigured != null) {
    _result.computeConfigured = computeConfigured;
  }
  if (databaseConfigured != null) {
    _result.databaseConfigured = databaseConfigured;
  }
  if (storageConfigured != null) {
    _result.storageConfigured = storageConfigured;
  }
  if (heraConfigured != null) {
    _result.heraConfigured = heraConfigured;
  }
  if (mercuryConfigured != null) {
    _result.mercuryConfigured = mercuryConfigured;
  }
  if (plutoConfigured != null) {
    _result.plutoConfigured = plutoConfigured;
  }
  if (endpoint != null) {
    _result.endpoint = endpoint;
  }
  if (oidcProviders != null) {
    _result.oidcProviders.addAll(oidcProviders);
  }
  if (emailProviders != null) {
    _result.emailProviders.addAll(emailProviders);
  }
  if (selectedEmailProvider != null) {
    _result.selectedEmailProvider = selectedEmailProvider;
  }
  if (textProviders != null) {
    _result.textProviders.addAll(textProviders);
  }
  if (selectedTextProvider != null) {
    _result.selectedTextProvider = selectedTextProvider;
  }
  if (emailConfigured != null) {
    _result.emailConfigured = emailConfigured;
  }
  if (textConfigured != null) {
    _result.textConfigured = textConfigured;
  }
  if (members != null) {
    _result.members.addAll(members);
  }
  return _result;
}