parseIsVisible function
Parses Adaptive Card isVisible values from JSON (bool, string, or absent).
Implementation
bool parseIsVisible(Object? value) {
if (value == null) return true;
if (value is bool) return value;
if (value is String) return value.toLowerCase() == 'true';
return true;
}