onResonse method
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();
}
Converts a dynamic response to the generic type T
.
@override
List<ContactInfo> onResonse(result) {
return (result as List).map((e) => ContactInfo.fromJson(e)).toList();
}