fromMap static method

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

Gets a possible FindSession instance from a Map value.

Implementation

static FindSession? fromMap(Map<String, dynamic>? map) {
  if (map == null) {
    return null;
  }
  final instance = FindSession(
    highlightedResultIndex: map['highlightedResultIndex'],
    resultCount: map['resultCount'],
    searchResultDisplayStyle: SearchResultDisplayStyle.fromNativeValue(
        map['searchResultDisplayStyle'])!,
  );
  return instance;
}