toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'friendlyName': friendlyName,
'modelNumber': modelNumber,
'deviceType': deviceType?.value,
'connectionType': connectionType?.value,
'deviceIdentifier': deviceIdentifier?.value,
'isDefaultDevice': isDefaultDevice,
'isConnected': isConnected,
'isLEDSupported': isLEDSupported,
'isBeepSupported': isBeepSupported,
'isVibrateSupported': isVibrateSupported,
};
}