cborDataTypeListFromJson function

List<CborDataType> cborDataTypeListFromJson(
  1. List? cborDataType, [
  2. List<CborDataType>? defaultValue
])

Implementation

List<enums.CborDataType> cborDataTypeListFromJson(
  List? cborDataType, [
  List<enums.CborDataType>? defaultValue,
]) {
  if (cborDataType == null) {
    return defaultValue ?? [];
  }

  return cborDataType.map((e) => cborDataTypeFromJson(e.toString())).toList();
}