<TKey is array-key, TValue>
public
toArray(bool $preserveKeys = true): ($preserveKeys is true ? array<TKey, TValue> : list<TValue>)
Get the object as an array
Salient\Http\HttpHeaders::toArray()