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, 'task_rate' => (float) $project->task_rate, 'due_date' => $project->due_date, 'private_notes' => $project->private_notes, 'budgeted_hours' => (float) $project->budgeted_hours, 'custom_value1' => $project->custom_value1, 'custom_value2' => $project->custom_value2, ]); } }