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