toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'isBluetoothEnabled': isBluetoothEnabled,
'pairedDevices': pairedDevices.map((d) => d.toMap()).toList(),
'connectedDevices': connectedDevices.map((d) => d.toMap()).toList(),
};
}