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