Organization constructor
Organization({})
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;
}