asJsonOrNull property

JSON? get asJsonOrNull

Returns the response as a JSON object or null if isJson is false.

Implementation

JSON? get asJsonOrNull => isRight ? right : null;