WriteDescriptorRequest constructor

WriteDescriptorRequest({
  1. String? remoteId,
  2. String? descriptorUuid,
  3. String? serviceUuid,
  4. String? secondaryServiceUuid,
  5. String? characteristicUuid,
  6. List<int>? value,
})

Implementation

factory WriteDescriptorRequest({
  $core.String? remoteId,
  $core.String? descriptorUuid,
  $core.String? serviceUuid,
  $core.String? secondaryServiceUuid,
  $core.String? characteristicUuid,
  $core.List<$core.int>? value,
}) {
  final _result = create();
  if (remoteId != null) {
    _result.remoteId = remoteId;
  }
  if (descriptorUuid != null) {
    _result.descriptorUuid = descriptorUuid;
  }
  if (serviceUuid != null) {
    _result.serviceUuid = serviceUuid;
  }
  if (secondaryServiceUuid != null) {
    _result.secondaryServiceUuid = secondaryServiceUuid;
  }
  if (characteristicUuid != null) {
    _result.characteristicUuid = characteristicUuid;
  }
  if (value != null) {
    _result.value = value;
  }
  return _result;
}