didDecodeRequestBody method Null safety

  1. @override
void didDecodeRequestBody(
  1. RequestBody body
)
override

Callback to indicate when a request body has been processed.

This method is called after the body has been processed by the decoder, but prior to the request being handled by the selected operation method. If there is no HTTP request body, this method is not called.

Implementation

@override
void didDecodeRequestBody(RequestBody body) {
  query!.values.readFromMap(body.as());
  query!.values.removePropertyFromBackingMap(query!.values.entity.primaryKey);
}