Organization constructor

Organization({
  1. String? id,
  2. String? ownerId,
  3. String? organizationName,
  4. String? contactEmail,
  5. Timestamp? createdAt,
  6. Timestamp? updatedAt,
})

Implementation

factory Organization({
  $core.String? id,
  $core.String? ownerId,
  $core.String? organizationName,
  $core.String? contactEmail,
  $1.Timestamp? createdAt,
  $1.Timestamp? updatedAt,
}) {
  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;
  }
  return _result;
}