$bool static method

bool? $bool(
  1. dynamic json,
  2. String key
)

Implementation

static bool? $bool(dynamic json, String key) {
  final value = _getJsonValue(json, key);
  if (value == null) return null;
  return bool.tryParse(value.toString());
}