parseBool function
Implementation
bool parseBool(dynamic value) {
if (value is bool) return value;
if (value is String) return value == 'true';
// Check whether value is not 0, because true values can be any value
// above 0 when coming from Jitsi.
if (value is num) return value != 0;
throw ArgumentError('Unsupported type: $value');
}