asMapOrNull property

Map<String, Json>? get asMapOrNull

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

Implementation

Map<String, Json>? get asMapOrNull =>
    value is Map<String, Json> ? value as Map<String, Json> : null;