BluetoothDevice.fromJson constructor

BluetoothDevice.fromJson(
  1. Map<String, dynamic> json
)

Implementation

BluetoothDevice.fromJson(Map<String, dynamic> json)
    : id = DeviceIdentifier(json['id']),
      name = json['name'],
      type = BluetoothDeviceType.values[json['type']];