responseFactory method

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

Implementation

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