Returns the item values as array.

@return Associative list of item properties and their values
199043
public function toArray()
	{
		$list = parent::toArray();

		$list['order.base.address.baseid'] = $this->getBaseId();
		$list['order.base.address.addressid'] = $this->getAddressId();
		$list['order.base.address.type'] = $this->getType();

		return $list;
	}
551113
public function toArrayValues()
    {
        $result = [];
        foreach ($this->each() as $v) {
            $this->_toArrayValues($result, $v);
        }
        return $result;
    }
79477
public function toArray()
    {
        $res = [];
        foreach ([
            'id',
            'displayTitle',
            'street',
            'number',
            'code',
            'town',
            'country',
            'longitude',
            'latitude',
        ] as $propertyName) {
            $res[$propertyName] = $this->{'get' . ucfirst($propertyName)}();
        }

        $res['name'] = TextUtils::truncate($this->getDisplayTitle(), 75);

        return $res;
    }
759466
public function toArray()
	{
		$response = array();

		foreach ($this->items as $key => $item)
		{
			$response[] = $item->toArray();
		}

		return $response;
	}
316560
public function toArray()
    {
        $arr = array();
        foreach ($this as $key => $value) {
            $method = 'get' . $key;
            if (method_exists($this, $method)) {
                $arr[$key] = $this->$method();
            }
        }

        return $arr;
    }
317488
private function getValuesAsArray()
    {
        if ($this->value === null) {
            return is_array($this->defaultValue) 
                ? $this->defaultValue 
                : [ $this->defaultValue ];
        }
        return $this->value;
    }
1246043
public function toMappedArray()
    {
        $values = $this->toArray();
        $mappedValues = [];
        foreach ($values as $key => $value) {
            $mappedValues[$key] = $this->readMapped($key);
        }

        return $mappedValues;
    }
483410
public function toArray()
    {
        $userParameters = [];

        foreach ($this->tsProperty as $property => $tsPropObj) {
            $userParameters[$property] = $tsPropObj->getValue();
        }

        return $userParameters;
    }
294523
public function toArray()
    {
        $arr = [];
        foreach ($this as $k => $entry) {
            if (!$entry instanceof Generic) {
                continue;
            }
            $arr[$k] = $entry->value;
        }
        return $arr;
    }
299478
public function toArray()
    {
        $articles   = [];
        foreach ($this->articles as $item)
        {
            $articles[] = $item->toArray();
        }

        $result = parent::toArray();
        $result['articles'] = $articles;

        return $result;
    }
827004
public function toArray()
    {
        $attributes = [];

        foreach ($this->fillable as $attribute)
        {
            $attributes[$attribute] = $this->getAttributeFromArray($attribute);
        }

        return $attributes;
    }
1078957
public function toArray()
    {
        return [
            'text' => $this->getText($this->getModel()),
            'attributes' => $this->getConditionAttributes($this->model)->htmlAttributesToString(),
            'url' => $this->getUrl($this->getModel()),
            'position' => $this->getPosition(),
            'icon' => $this->getIcon(),
            'hideText' => $this->hideText,
        ];
    }
896238
public function toArray() {
        return array_map(function($value) {
            return ($value instanceof Arrayable) ? $value->toArray() : $value;
        }, $this->_attributes);
    }
392703
public function toArray()
    {
        return [
            'unique_id' => $this->uniqueId,
            'id' => $this->id,
            'name' => $this->name,
            'price' => $this->price,
            'quantity' => $this->quantity,
            'options' => $this->options,
        ];
    }
190621
public function toArray()
    {
        $ret = array();
        foreach (array_keys($this->values) as $key) {
            $ret[$key] = $this->get($key);
        }

        return $ret;
    }
1180428
public function toArray()
    {
        return [
            'name'                  => $this->name,
            'item_type'             => $this->item_type,
            'quantity'              => $this->quantity,
            'unit_price'            => CurrencyUtils::amountToExponent($this->unit_price, $this->currency),
            'tax_rate'              => CurrencyUtils::amountToExponent($this->tax_rate, $this->currency),
            'total_discount_amount' => CurrencyUtils::amountToExponent($this->total_discount_amount, $this->currency),
            'total_amount'          => CurrencyUtils::amountToExponent($this->getTotalAmount(), $this->currency),
            'total_tax_amount'      => CurrencyUtils::amountToExponent($this->getTotalTaxAmount(), $this->currency),
            'reference'             => $this->reference,
            'image_url'             => $this->image_url,
            'product_url'           => $this->product_url,
            'quantity_unit'         => $this->quantity_unit,
            'product_identifiers'   => $this->getProductIdentifiersParamsStructure(),
            'merchant_data'         => $this->getMerchantDataParamsStructure()
        ];
    }
921158
public function toArray()
	{
		$list = parent::toArray();

		$list['locale.languageid'] = $this->getLanguageId();
		$list['locale.currencyid'] = $this->getCurrencyId();
		$list['locale.position'] = $this->getPosition();
		$list['locale.status'] = $this->getStatus();

		return $list;
	}