SearchTrending.fromJson constructor
Implementation
factory SearchTrending.fromJson(Map<String, dynamic> json) {
return SearchTrending(
coins: (json['coins'] as List<dynamic>)
.map((e) => Coins.fromJson(e as Map<String, dynamic>))
.toList(),
exchanges: json['exchanges'] as List<dynamic>?,
);
}