toResponse method
Return a response whose result data is this object for the request with
the given id
, where the request was received at the given requestTime
.
Implementation
@override
Response toResponse(String id, int requestTime) {
return Response(id, requestTime, result: toJson());
}