Organization constructor

Organization({
  1. String? id,
  2. String? ownerId,
  3. String? organizationName,
  4. String? contactEmail,
  5. Timestamp? createdAt,
  6. Timestamp? updatedAt,
  7. bool? isOwner,
  8. Iterable<Collaboration>? collaborations,
})

Implementation

factory Organization({
  $core.String? id,
  $core.String? ownerId,
  $core.String? organizationName,
  $core.String? contactEmail,
  $1.Timestamp? createdAt,
  $1.Timestamp? updatedAt,
  $core.bool? isOwner,
  $core.Iterable<Collaboration>? collaborations,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (ownerId != null) {
    _result.ownerId = ownerId;
  }
  if (organizationName != null) {
    _result.organizationName = organizationName;
  }
  if (contactEmail != null) {
    _result.contactEmail = contactEmail;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  if (isOwner != null) {
    _result.isOwner = isOwner;
  }
  if (collaborations != null) {
    _result.collaborations.addAll(collaborations);
  }
  return _result;
}