Map<String, dynamic> toJson() => { "count": count, "next": next, "previous": previous, "results": List<dynamic>.from(pokeDetails.map((x) => x.toJson())), };