Project constructor
Project({
- String? id,
- String? name,
- String? apiKey,
- Image? logo,
- ProjectState? state,
- Timestamp? createdAt,
- Timestamp? updatedAt,
- Timestamp? apiKeyGeneratedAt,
- Timestamp? apiKeySecuredAt,
- bool? apiKeySecured,
- bool? computeConfigured,
- bool? databaseConfigured,
- bool? storageConfigured,
- bool? heraConfigured,
- bool? mercuryConfigured,
- bool? plutoConfigured,
- String? endpoint,
- Map<
String, OidcProvider> ? oidcProviders, - Map<
String, EmailProvider> ? emailProviders, - EmailProviderType? selectedEmailProvider,
- Map<
String, TextProvider> ? textProviders, - TextProviderType? selectedTextProvider,
- bool? emailConfigured,
- bool? textConfigured,
- 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;
}