BmBluetoothDescriptor.fromMap constructor

BmBluetoothDescriptor.fromMap(
  1. Map json
)

Implementation

factory BmBluetoothDescriptor.fromMap(Map<dynamic, dynamic> json) {
  return BmBluetoothDescriptor(
    remoteId: DeviceIdentifier(json['remote_id']),
    serviceUuid: Guid(json['service_uuid']),
    characteristicUuid: Guid(json['characteristic_uuid']),
    descriptorUuid: Guid(json['descriptor_uuid']),
  );
}