toArray method

RespArray toArray()

Converts this type to an array. Throws a StateError if this is not an array.

Implementation

RespArray toArray() => throw StateError('${toString()} is not an array!');