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