Issue with API Parse JSON

Hello,

I am new in flutter and trying to parse my API through below code but it’s not working:

Future<List<Slider>> getSliders() async {
  Uri uri = Helper.getUri('api/Home/sliders');
  final client = new http.Client();
  final response = await client.get(uri, headers: {
    HttpHeaders.contentTypeHeader: 'application/json',
    HttpHeaders.authorizationHeader: 'Bearer '+currentUser.value.accessToken,
  });
  if (response.statusCode == 200) {
    final parsed = json.decode(response.body).cast<Map<String, dynamic>>();

    return parsed.map<Slider>((json) => {
      Slider.fromJSON(json)
    }).toList();
  } else {
    // If the server did not return a 200 OK response,
    // then throw an exception.
    throw Exception('Failed to load album');
  }
}


  void listenForSliders({String message}) async {
    final List<Slider> stream = await getSliders();
    print(1);
    print(stream);
    print(2);
    /* stream.listen((Slider _slider) {
      setState(() {
        sliders.add(_slider);
      });
    }, onError: (a) {print(a);
    }, onDone: () {}); */
  }
E/flutter (31794): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: type '(dynamic) => Set<Slider>' is not a subtype of type '(Map<String, dynamic>) => Slider' of 'f'

What can be the issue? Please guide.