ConnectApp constructor

ConnectApp({
  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. String? about,
  10. Iterable<String>? audience,
  11. Iterable<Scope>? scopes,
  12. Iterable<GrantType>? grants,
  13. Iterable<ResponeType>? responses,
  14. Iterable<String>? callbacks,
  15. Timestamp? createdAt,
  16. Timestamp? updatedAt,
})

Implementation

factory ConnectApp({
  $core.String? id,
  $core.String? name,
  $core.String? password,
  $core.String? contactEmail,
  $core.String? ownerId,
  $core.String? appWebsite,
  $core.String? logoUrl,
  $core.String? termsUrl,
  $core.String? about,
  $core.Iterable<$core.String>? audience,
  $core.Iterable<Scope>? scopes,
  $core.Iterable<GrantType>? grants,
  $core.Iterable<ResponeType>? responses,
  $core.Iterable<$core.String>? callbacks,
  $1.Timestamp? createdAt,
  $1.Timestamp? updatedAt,
}) {
  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 (about != null) {
    _result.about = about;
  }
  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;
  }
  return _result;
}