Metadata constructor

Metadata({
  1. bool? isOpen,
  2. Iterable<String>? allowedEmails,
  3. String? about,
  4. String? ownerId,
  5. bool? requireIdentification,
})

Implementation

factory Metadata({
  $core.bool? isOpen,
  $core.Iterable<$core.String>? allowedEmails,
  $core.String? about,
  $core.String? ownerId,
  $core.bool? requireIdentification,
}) {
  final _result = create();
  if (isOpen != null) {
    _result.isOpen = isOpen;
  }
  if (allowedEmails != null) {
    _result.allowedEmails.addAll(allowedEmails);
  }
  if (about != null) {
    _result.about = about;
  }
  if (ownerId != null) {
    _result.ownerId = ownerId;
  }
  if (requireIdentification != null) {
    _result.requireIdentification = requireIdentification;
  }
  return _result;
}