ThpDeviceProperties.decode constructor
ThpDeviceProperties.decode(
- Uint8List raw
Implementation
factory ThpDeviceProperties.decode(Uint8List raw) {
final f = ProtoFields.decode(raw);
return ThpDeviceProperties(
raw: raw,
internalModel: f.string(1) ?? '',
modelVariant: f.uint(2) ?? 0,
protocolVersionMajor: f.uint(3) ?? 0,
protocolVersionMinor: f.uint(4) ?? 0,
pairingMethods: f.uints(5),
);
}