Future<Response> didFindObject(InstanceType result)

Executed after a fetch by ID query that found a matching instance.

By default, returns a Response.ok with the encoded instance. The result is the fetched InstanceType. You may override this method to provide some other behavior.

Source

Future<Response> didFindObject(InstanceType result) async {
  return new Response.ok(result);
}