ClientApp constructor

ClientApp({
  1. String? id,
  2. String? name,
  3. String? password,
  4. String? contactEmail,
  5. String? ownerId,
  6. String? appWebsite,
  7. String? logoUrl,
  8. String? termsUrl,
  9. ClientMetadata? clientMetadata,
  10. Iterable<String>? audience,
  11. Iterable<Scope>? scopes,
  12. Iterable<Grant>? grants,
  13. Iterable<OauthResponse>? responses,
  14. Iterable<String>? callbacks,
  15. Timestamp? createdAt,
  16. Timestamp? updatedAt,
  17. Iterable<Scope>? availableScopes,
  18. Iterable<Grant>? availableGrants,
  19. Iterable<OauthResponse>? availableResponses,
  20. Iterable<CountryCode>? availableCountries,
  21. Iterable<Scope>? advancedScopes,
  22. 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;
}