ClientMetadata constructor

ClientMetadata({
  1. bool? isOpen,
  2. String? about,
  3. String? userOwnerId,
  4. int? ageLowerLimit,
  5. int? ageUpperLimit,
  6. Iterable<CountryCode>? allowedCountries,
  7. Iterable<String>? allowedEmails,
})

Implementation

factory ClientMetadata({
  $core.bool? isOpen,
  $core.String? about,
  $core.String? userOwnerId,
  $core.int? ageLowerLimit,
  $core.int? ageUpperLimit,
  $core.Iterable<CountryCode>? allowedCountries,
  $core.Iterable<$core.String>? allowedEmails,
}) {
  final _result = create();
  if (isOpen != null) {
    _result.isOpen = isOpen;
  }
  if (about != null) {
    _result.about = about;
  }
  if (userOwnerId != null) {
    _result.userOwnerId = userOwnerId;
  }
  if (ageLowerLimit != null) {
    _result.ageLowerLimit = ageLowerLimit;
  }
  if (ageUpperLimit != null) {
    _result.ageUpperLimit = ageUpperLimit;
  }
  if (allowedCountries != null) {
    _result.allowedCountries.addAll(allowedCountries);
  }
  if (allowedEmails != null) {
    _result.allowedEmails.addAll(allowedEmails);
  }
  return _result;
}