Class MetaBuilder
- Namespace
- JsonApiDotNetCore.Serialization.Response
- Assembly
- JsonApiDotNetCore.dll
Builds the top-level meta object.
[PublicAPI]
public sealed class MetaBuilder : IMetaBuilder
- Inheritance
-
MetaBuilder
- Implements
- Inherited Members
Constructors
MetaBuilder(IPaginationContext, IJsonApiOptions, IResponseMeta)
public MetaBuilder(IPaginationContext paginationContext, IJsonApiOptions options, IResponseMeta responseMeta)
Parameters
paginationContext
IPaginationContextoptions
IJsonApiOptionsresponseMeta
IResponseMeta
Methods
Add(IDictionary<string, object?>)
Merges the specified dictionary with existing key/value pairs. In the event of a key collision, the value from the specified dictionary will overwrite the existing one.
public void Add(IDictionary<string, object?> values)
Parameters
values
IDictionary<string, object>
Build()
Builds the top-level meta data object.
public IDictionary<string, object?>? Build()