docTypeNullableListFromJson function

List<DocType>? docTypeNullableListFromJson(
  1. List? docType, [
  2. List<DocType>? defaultValue
])

Implementation

List<enums.DocType>? docTypeNullableListFromJson(
  List? docType, [
  List<enums.DocType>? defaultValue,
]) {
  if (docType == null) {
    return defaultValue;
  }

  return docType.map((e) => docTypeFromJson(e.toString())).toList();
}