product_key)) { return false; } return new Item($data, function ($data) { return [ 'public_id' => $this->getProduct($data, 'product_key', 'public_id'), 'product_key' => $this->getString($data, 'product_key'), 'notes' => $this->getString($data, 'notes'), 'cost' => $this->getFloat($data, 'cost'), 'custom_value1' => $this->getString($data, 'custom_value1'), 'custom_value2' => $this->getString($data, 'custom_value2'), ]; }); } }