documentOperationRequestBody method Null safety
- APIDocumentContext context,
- Operation? operation
Returns a documented request body for operation
.
If an operation method binds an Bind.body argument or accepts form data, this method returns a APIRequestBody
that describes the bound body type. You may override this method to take an alternative approach or to augment the
automatically generated request body documentation.
Implementation
APIRequestBody? documentOperationRequestBody(
APIDocumentContext context,
Operation? operation,
) {
return _runtime!.documenter
?.documentOperationRequestBody(this, context, operation);
}