decode static method
- Unpacker u
Implementation
static NetworkDefaults? decode(Unpacker u) {
switch (u.unpackListLength()) {
case 0: return null;
case 3: break;
default: throw DecodeError();
}
return NetworkDefaults(
bind: _decodeList(u, (u) => (u.unpackString())!),
portForwardingEnabled: (u.unpackBool())!,
localDiscoveryEnabled: (u.unpackBool())!,
);
}