asStringOrNull property

String? get asStringOrNull

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

Implementation

String? get asStringOrNull => value is String ? value as String : null;