responseFactory method

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

Implementation

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