asBoolOrNull property

bool? get asBoolOrNull

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

Implementation

bool? get asBoolOrNull => value is bool ? value as bool : null;