responseFactory method

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

Implementation

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