Organization constructor
Organization({})
Implementation
factory Organization({
$core.String? id,
$core.String? name,
$core.String? ownerUserId,
$1.Timestamp? createdAt,
$1.Timestamp? updatedAt,
$core.Iterable<$core.String>? viewers,
$core.Iterable<$core.String>? editors,
SubscriptionType? subscriptionType,
}) {
final _result = create();
if (id != null) {
_result.id = id;
}
if (name != null) {
_result.name = name;
}
if (ownerUserId != null) {
_result.ownerUserId = ownerUserId;
}
if (createdAt != null) {
_result.createdAt = createdAt;
}
if (updatedAt != null) {
_result.updatedAt = updatedAt;
}
if (viewers != null) {
_result.viewers.addAll(viewers);
}
if (editors != null) {
_result.editors.addAll(editors);
}
if (subscriptionType != null) {
_result.subscriptionType = subscriptionType;
}
return _result;
}