listFromJson static method
Implementation
static List<DocumentType> listFromJson(List<dynamic>? json) {
if (json == null) {
return <DocumentType>[];
}
return json.fold(<DocumentType>[],
(List<DocumentType> previousValue, element) {
final DocumentType? object = DocumentType.fromJson(element);
if (object is DocumentType) {
previousValue.add(object);
}
return previousValue;
});
}