toMap method
Implementation
Map<String, dynamic> toMap() {
return {
'isConnected': isConnected,
'isGroupOwner': isGroupOwner,
'groupOwnerAddress': groupOwnerAddress,
'deviceAddress': deviceAddress,
'deviceName': deviceName,
'deviceMacAddress': deviceMacAddress,
'remoteSocketAddress': remoteSocketAddress,
'localSocketAddress': localSocketAddress,
'connectionType': connectionType,
};
}