serializeCommunicationType function
Implementation
int serializeCommunicationType(CommunicationType communicationType) {
switch (communicationType) {
//case CommunicationType.UNKNOWN:
//return 0;
case CommunicationType.BTH:
return 1;
case CommunicationType.BLE:
return 2;
//case CommunicationType.DUAL:
//return 3;
}
// throw ArgumentError('Unknown CommunicationType');
}