cborDataTypeNullableListFromJson function

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

Implementation

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

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