toResponse method

  1. @override
Response toResponse(
  1. String id,
  2. int requestTime, {
  3. ClientUriConverter? clientUriConverter,
})

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,
    {ClientUriConverter? clientUriConverter}) {
  return Response(id, requestTime,
      result: toJson(clientUriConverter: clientUriConverter));
}