physicalDocumentCategoryListFromJson function
List<PhysicalDocumentCategory>
physicalDocumentCategoryListFromJson(
- List? physicalDocumentCategory, [
- List<
PhysicalDocumentCategory> ? defaultValue
Implementation
List<enums.PhysicalDocumentCategory> physicalDocumentCategoryListFromJson(
List? physicalDocumentCategory, [
List<enums.PhysicalDocumentCategory>? defaultValue,
]) {
if (physicalDocumentCategory == null) {
return defaultValue ?? [];
}
return physicalDocumentCategory
.map((e) => physicalDocumentCategoryFromJson(e.toString()))
.toList();
}