Table of Contents

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>
  • IIdentifiable
  • null
  • IEnumerable<OperationContainer?>
  • IEnumerable<ErrorObject>
  • ErrorObject
Document Convert(object? model)

Parameters

model object

Returns

Document