responseFactory method

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

Implementation

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