getReplayCommentsList method
Implementation
Future<List<ReplyCommentModel>?> getReplayCommentsList() {
return _httpService.getReplayCommentsList().then((data) async {
if (data.statusCode == 200) {
List<dynamic> users = json.decode(data.body);
List<ReplyCommentModel> replyList =
users.map((i) => ReplyCommentModel.fromJson(i)).toList();
return replyList;
} else {
return null;
}
});
}