dco_decode_captive_portal_status method
- dynamic raw
Implementation
@protected
CaptivePortalStatus dco_decode_captive_portal_status(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 CaptivePortalStatus(
isCaptivePortal: dco_decode_bool(arr[0]),
redirectUrl: dco_decode_opt_String(arr[1]),
);
}