Skip to content

Empty Response

Veli Bacik edited this page Nov 27, 2021 · 2 revisions

Your backend service if it returns primitive response(only string, number etc.), you can use like this.

  final response = await networkManager.send<EmptyModel, EmptyModel>('/dogs/0/code.json',
        parseModel: EmptyModel(), method: RequestType.GET);
Clone this wiki locally