Interface IDocumentAdapter
- Namespace
- JsonApiDotNetCore.Serialization.Request.Adapters
- Assembly
- JsonApiDotNetCore.dll
The entry point for validating and converting the deserialized Document from the request body into a model. The produced models are used in ASP.NET Model Binding.
public interface IDocumentAdapter
Methods
Convert(Document)
Validates and converts the specified document. Possible return values:
-
IList<OperationContainer>(operations) -
ISet<IIdentifiable>(to-many relationship, unknown relationship) -
IIdentifiable(resource, to-one relationship) -
null(to-one relationship)
object? Convert(Document document)
Parameters
documentDocument