asListOrNull property

List<JSON>? get asListOrNull

Returns the response as a list of JSON objects or null if the response is not a list.

May throw an exception if isList is false.

Implementation

List<JSON>? get asListOrNull => isLeft ? left : null;