asObjectOrNull property

JsonObject? get asObjectOrNull

Get data wrapped in JsonObject or null if data is not present.

Implementation

JsonObject? get asObjectOrNull =>
    data == null ? null : JsonObject(data: data!);