hubCommandTypeListToJson function

List<String> hubCommandTypeListToJson(
  1. List<HubCommandType>? hubCommandType
)

Implementation

List<String> hubCommandTypeListToJson(
    List<enums.HubCommandType>? hubCommandType) {
  if (hubCommandType == null) {
    return [];
  }

  return hubCommandType.map((e) => e.value!).toList();
}