dco_decode_security_config method
Implementation
@protected
SecurityConfig dco_decode_security_config(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 2)
throw Exception('unexpected arr length: expect 2 but see ${arr.length}');
return SecurityConfig(
blockVpn: dco_decode_bool(arr[0]),
detectDnsHijack: dco_decode_bool(arr[1]),
);
}