SearchResults.fromJson constructor

SearchResults.fromJson(
  1. Map<String, dynamic> json
)

Constructs a SearchResults instance from a JSON map.

json is the JSON map containing the search results data.

Implementation

SearchResults.fromJson(Map<String, dynamic> json)
    : this.coins = _parseCoins(json['coins']),
      this.exchanges = _parseExchanges(json['exchanges']),
      this.categories = _parseCategories(json['categories']),
      this.nfts = _parseNFTs(json['nfts']);