hubCommandTypeListFromJson function
- List? hubCommandType, [
- List<
HubCommandType> ? defaultValue
Implementation
List<enums.HubCommandType> hubCommandTypeListFromJson(
List? hubCommandType, [
List<enums.HubCommandType>? defaultValue,
]) {
if (hubCommandType == null) {
return defaultValue ?? [];
}
return hubCommandType
.map((e) => hubCommandTypeFromJson(e.toString()))
.toList();
}