Creates a new Group instance.
The options for the group.
Creates a new Group instance with a title.
The title of the group (e.g. Featured Books).
Adds a link to the navigation collection. This is a convenience method for links to other OPDS 2.0 feeds.
The URL of the linked feed.
The title of the link.
Optionalrel: string
The relation of the link (optional).
The media type (default: application/opds+json).
This instance (for chaining).
Adds one or more links to the navigation collection. Each link must have a title.
The navigation links to add.
This instance (for chaining).
Adds one or more publications.
The publications to add.
This instance (for chaining).
Adds multiple publications.
The publications to add.
This instance (for chaining).
Adds a self link. Any existing self link is replaced.
The URL of the collection.
The media type (default: application/opds+json).
This instance (for chaining).
Sets the description.
The description text.
This instance (for chaining).
Merges the given fields into the metadata.
The metadata fields to set.
This instance (for chaining).
Sets a specific metadata field.
The key of the metadata field.
The value to set.
This instance (for chaining).
Sets the last modification date.
The date in ISO 8601 format.
This instance (for chaining).
Sets the total number of items in the collection.
The number of items.
This instance (for chaining).
Sets the subtitle.
The subtitle.
This instance (for chaining).
Used by JSON.stringify to serialize the group.
Converts the group to a plain object following the OPDS 2.0 JSON structure.
Serialization options (only baseUrl is used).
The group as a plain object.
Checks the group against the requirements of the OPDS 2.0 specification.
A list of problems. An empty list means the group is valid.
StaticfromCreates a Group instance from OPDS 2.0 JSON.
The JSON string or an already parsed object.
A new Group instance.
A group in an OPDS 2.0 feed. A group contains either a navigation collection or a publications collection, never both.