BluetoothDescriptor.fromProto constructor

BluetoothDescriptor.fromProto(
  1. BluetoothDescriptor p
)

Implementation

BluetoothDescriptor.fromProto(protos.BluetoothDescriptor p)
    : uuid = new Guid(p.uuid),
      deviceId = new DeviceIdentifier(p.remoteId),
      serviceUuid = new Guid(p.serviceUuid),
      characteristicUuid = new Guid(p.characteristicUuid),
      _value = BehaviorSubject.seeded(p.value);