dynamic 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

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