responseFactory method

  1. @override
List<CommentReportView> responseFactory(
  1. Map<String, dynamic> json
)
override

Implementation

@override
List<CommentReportView> responseFactory(Map<String, dynamic> json) =>
    (json['comment_reports'] as List)
        .map((dynamic e) => CommentReportView.fromJson(e))
        .toList();