SearchTrending.fromJson constructor

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

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>?,
	);
}