public function transform($model) : array { return ['name' => (string) $model->name, 'price' => (int) $model->price, 'isRotten' => (bool) false]; }