Organization constructor

Organization({
  1. String? id,
  2. String? name,
  3. String? ownerUserId,
  4. Timestamp? createdAt,
  5. Timestamp? updatedAt,
  6. Iterable<String>? viewers,
  7. Iterable<String>? editors,
  8. SubscriptionType? subscriptionType,
})

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;
}