fromMap static method
- Map<
String, dynamic> ? map, { - EnumMethod? enumMethod,
Gets a possible WebHistoryItem instance from a Map value.
Implementation
static WebHistoryItem? fromMap(
Map<String, dynamic>? map, {
EnumMethod? enumMethod,
}) {
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;
}