fromMap static method
Gets a possible WebHistoryItem instance from a Map value.
Implementation
static WebHistoryItem? fromMap(Map<String, dynamic>? map) {
if (map == null) {
return null;
}
final instance = WebHistoryItem(
entryId: map['entryId'],
index: map['index'],
offset: map['offset'],
originalUrl:
map['originalUrl'] != null ? WebUri(map['originalUrl']) : null,
title: map['title'],
url: map['url'] != null ? WebUri(map['url']) : null,
);
return instance;
}