dco_decode_network_configuration method
Implementation
@protected
NetworkConfiguration dco_decode_network_configuration(dynamic raw) {
// Codec=Dco (DartCObject based), see doc to use other codecs
final arr = raw as List<dynamic>;
if (arr.length != 6)
throw Exception('unexpected arr length: expect 6 but see ${arr.length}');
return NetworkConfiguration(
targets: dco_decode_list_network_target(arr[0]),
checkIntervalMs: dco_decode_u_64(arr[1]),
cacheValidityMs: dco_decode_u_64(arr[2]),
qualityThreshold: dco_decode_quality_thresholds(arr[3]),
security: dco_decode_security_config(arr[4]),
resilience: dco_decode_resilience_config(arr[5]),
);
}