onResonse method

  1. @override
List<WitnessesAccount> onResonse(
  1. Map<String, dynamic> result
)
override

Converts the response result to the specified type RESULT.

Implementation

@override
List<WitnessesAccount> onResonse(Map<String, dynamic> result) {
  final witnesses = (result["witnesses"] as List)
      .map((e) => WitnessesAccount.fromJson(e))
      .toList();
  return witnesses;
}