getDefaults($project), [ 'id' => (int) $project->public_id, 'name' => $project->name, 'client_id' => $project->client ? (int) $project->client->public_id : null, 'updated_at' => $this->getTimestamp($project->updated_at), 'archived_at' => $this->getTimestamp($project->deleted_at), 'is_deleted' => (bool) $project->is_deleted, ]); } }