onCall method
Future
onCall(
- dynamic instance,
- String methodName,
- Map<
String, Object?> parameters, - TypeReflection? returnType,
override
Calls made through a ClassProxy will be intercepted by onCall implementation.
Implementation
@override
Future onCall(dynamic instance, String methodName,
Map<String, Object?> parameters, TypeReflection? returnType) async {
var json = await doRequest(methodName, parameters);
return resolveResponse(returnType, json);
}