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