Creates a new Facet instance.
The options for the facet group.
Creates a new Facet instance with a title.
The title of the facet group (e.g. Language).
Adds a facet to the group. This is a convenience method for facets linking to OPDS 2.0 feeds.
The URL of the facet.
The title of the facet (e.g. English).
numberOfItems hints at the number of publications for this facet, active marks the facet as currently selected.
The Facet instance (for chaining).
Used by JSON.stringify to serialize the facet group.
Converts the facet group to a plain object following the OPDS 2.0 JSON structure.
Serialization options (only baseUrl is used).
The facet group as a plain object.
Checks the facet group against the requirements of the OPDS 2.0 specification.
A list of problems. An empty list means the facet group is valid.
StaticfromCreates a Facet instance from OPDS 2.0 JSON.
The JSON string or an already parsed object.
A new Facet instance.
A facet group in an OPDS 2.0 feed, used to filter or reorder the publications of a feed.