toProto method
Implementation
BmBluetoothCharacteristic toProto() {
return BmBluetoothCharacteristic(
remoteId: DeviceIdentifier(remoteId.str),
serviceUuid: serviceUuid,
secondaryServiceUuid: secondaryServiceUuid,
characteristicUuid: characteristicUuid,
descriptors: [for (final d in descriptors) d.toProto()],
properties: properties.toProto(),
);
}