responseFactory method

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

Implementation

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