mapFromJson static method
Implementation
static Map<String, DocumentFile> mapFromJson(Map<String, dynamic>? json) {
if (json == null) {
return <String, DocumentFile>{};
}
return json.entries.fold(<String, DocumentFile>{},
(Map<String, DocumentFile> previousValue, element) {
final DocumentFile? object = DocumentFile.fromJson(element.value);
if (object is DocumentFile) {
previousValue[element.key] = object;
}
return previousValue;
});
}