hubCommandTypeListToJson function
- List<
HubCommandType> ? hubCommandType
Implementation
List<String> hubCommandTypeListToJson(
List<enums.HubCommandType>? hubCommandType) {
if (hubCommandType == null) {
return [];
}
return hubCommandType.map((e) => e.value!).toList();
}