ClientApp constructor
ClientApp({
- String? id,
- String? name,
- String? password,
- String? contactEmail,
- String? ownerId,
- String? appWebsite,
- String? logoUrl,
- String? termsUrl,
- ClientMetadata? clientMetadata,
- Iterable<
String> ? audience, - Iterable<
Scope> ? scopes, - Iterable<
Grant> ? grants, - Iterable<
OauthResponse> ? responses, - Iterable<
String> ? callbacks, - Timestamp? createdAt,
- Timestamp? updatedAt,
- Iterable<
Scope> ? availableScopes, - Iterable<
Grant> ? availableGrants, - Iterable<
OauthResponse> ? availableResponses, - Iterable<
CountryCode> ? availableCountries, - Iterable<
Scope> ? advancedScopes, - Iterable<
Collaboration> ? collaborations,
Implementation
factory ClientApp({
$core.String? id,
$core.String? name,
$core.String? password,
$core.String? contactEmail,
$core.String? ownerId,
$core.String? appWebsite,
$core.String? logoUrl,
$core.String? termsUrl,
ClientMetadata? clientMetadata,
$core.Iterable<$core.String>? audience,
$core.Iterable<Scope>? scopes,
$core.Iterable<Grant>? grants,
$core.Iterable<OauthResponse>? responses,
$core.Iterable<$core.String>? callbacks,
$1.Timestamp? createdAt,
$1.Timestamp? updatedAt,
$core.Iterable<Scope>? availableScopes,
$core.Iterable<Grant>? availableGrants,
$core.Iterable<OauthResponse>? availableResponses,
$core.Iterable<CountryCode>? availableCountries,
$core.Iterable<Scope>? advancedScopes,
$core.Iterable<Collaboration>? collaborations,
}) {
final _result = create();
if (id != null) {
_result.id = id;
}
if (name != null) {
_result.name = name;
}
if (password != null) {
_result.password = password;
}
if (contactEmail != null) {
_result.contactEmail = contactEmail;
}
if (ownerId != null) {
_result.ownerId = ownerId;
}
if (appWebsite != null) {
_result.appWebsite = appWebsite;
}
if (logoUrl != null) {
_result.logoUrl = logoUrl;
}
if (termsUrl != null) {
_result.termsUrl = termsUrl;
}
if (clientMetadata != null) {
_result.clientMetadata = clientMetadata;
}
if (audience != null) {
_result.audience.addAll(audience);
}
if (scopes != null) {
_result.scopes.addAll(scopes);
}
if (grants != null) {
_result.grants.addAll(grants);
}
if (responses != null) {
_result.responses.addAll(responses);
}
if (callbacks != null) {
_result.callbacks.addAll(callbacks);
}
if (createdAt != null) {
_result.createdAt = createdAt;
}
if (updatedAt != null) {
_result.updatedAt = updatedAt;
}
if (availableScopes != null) {
_result.availableScopes.addAll(availableScopes);
}
if (availableGrants != null) {
_result.availableGrants.addAll(availableGrants);
}
if (availableResponses != null) {
_result.availableResponses.addAll(availableResponses);
}
if (availableCountries != null) {
_result.availableCountries.addAll(availableCountries);
}
if (advancedScopes != null) {
_result.advancedScopes.addAll(advancedScopes);
}
if (collaborations != null) {
_result.collaborations.addAll(collaborations);
}
return _result;
}