onResonse method

  1. @override
List<ContactInfo> onResonse(
  1. dynamic result
)
override

Converts a dynamic response to the generic type T.

Implementation

@override
List<ContactInfo> onResonse(result) {
  return (result as List).map((e) => ContactInfo.fromJson(e)).toList();
}