Interface IResponseModelAdapter
- Namespace
- JsonApiDotNetCore.Serialization.Response
- Assembly
- JsonApiDotNetCore.dll
Converts the produced model from an ASP.NET controller action into a Document, ready to be serialized as the response body.
public interface IResponseModelAdapter
Methods
Convert(object?)
Validates and converts the specified model. Supported model types:
IEnumerable<IIdentifiable>IIdentifiablenullIEnumerable<OperationContainer?>IEnumerable<ErrorObject>ErrorObject
Document Convert(object? model)
Parameters
modelobject