convent method
Implementation
ProtoLogMessage_LogLevel convent() {
switch (this) {
case McuMgrLogLevel.debug:
return ProtoLogMessage_LogLevel.DEBUG;
case McuMgrLogLevel.verbose:
return ProtoLogMessage_LogLevel.VERBOSE;
case McuMgrLogLevel.info:
return ProtoLogMessage_LogLevel.INFO;
case McuMgrLogLevel.application:
return ProtoLogMessage_LogLevel.APPLICATION;
case McuMgrLogLevel.warning:
return ProtoLogMessage_LogLevel.WARNING;
case McuMgrLogLevel.error:
return ProtoLogMessage_LogLevel.ERROR;
default:
throw 'Unsupported log level';
}
}