postDetail function

Future<PostDetailModel> postDetail(
  1. {required int postId}
)

Implementation

Future<PostDetailModel> postDetail({required int postId}) async {
  Map<String, dynamic> req = {AddPhoto.id: postId};
  return PostDetailModel.fromMap(await (handleResponse(await buildHttpResponse("${APIEndPoint.postDetail}", request: req, method: HttpMethod.POST))));
}