Member constructor

Member({
  1. String? id,
  2. String? projectId,
  3. String? userId,
  4. MemberType? type,
  5. Timestamp? createdAt,
  6. Timestamp? updatedAt,
  7. String? organizationId,
})

Implementation

factory Member({
  $core.String? id,
  $core.String? projectId,
  $core.String? userId,
  MemberType? type,
  $1.Timestamp? createdAt,
  $1.Timestamp? updatedAt,
  $core.String? organizationId,
}) {
  final _result = create();
  if (id != null) {
    _result.id = id;
  }
  if (projectId != null) {
    _result.projectId = projectId;
  }
  if (userId != null) {
    _result.userId = userId;
  }
  if (type != null) {
    _result.type = type;
  }
  if (createdAt != null) {
    _result.createdAt = createdAt;
  }
  if (updatedAt != null) {
    _result.updatedAt = updatedAt;
  }
  if (organizationId != null) {
    _result.organizationId = organizationId;
  }
  return _result;
}