asListOrNull property

List<Json>? get asListOrNull

Get the List value of this JSON value, or null if other type.

Implementation

List<Json>? get asListOrNull =>
    value is List<Json> ? value as List<Json> : null;