Organization constructor

Organization({
  1. String? id,
  2. String? name,
  3. String? ownerUserId,
  4. Timestamp? createdAt,
  5. Timestamp? updatedAt,
  6. SubscriptionType? subscriptionType,
})

Implementation

factory Organization({
  $core.String? id,
  $core.String? name,
  $core.String? ownerUserId,
  $3.Timestamp? createdAt,
  $3.Timestamp? updatedAt,
  SubscriptionType? subscriptionType,
  $core.String? logo,
}) {
  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 (subscriptionType != null) {
    _result.subscriptionType = subscriptionType;
  }
  if (logo != null) {
    _result.logo = logo;
  }
  return _result;
}