fromMap static method

WebHistoryItem? fromMap(
  1. Map<String, dynamic>? map
)

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;
}