apiV1DiscussionCommentsGet method

Future<Response<CommentViewModelPaginationViewModel>> apiV1DiscussionCommentsGet({
  1. int? page,
  2. int? perPage,
  3. int? entityId,
  4. CommentType? entityType,
})

Retrieve a list of comments @param page @param perPage @param entityId @param entityType

Implementation

Future<chopper.Response<CommentViewModelPaginationViewModel>>
    apiV1DiscussionCommentsGet({
  int? page,
  int? perPage,
  int? entityId,
  enums.CommentType? entityType,
}) {
  generatedMapping.putIfAbsent(CommentViewModelPaginationViewModel,
      () => CommentViewModelPaginationViewModel.fromJsonFactory);

  return _apiV1DiscussionCommentsGet(
      page: page,
      perPage: perPage,
      entityId: entityId,
      entityType: enums.$CommentTypeMap[entityType]);
}