PublicationCollection class

Core Collection Model

https://readium.org/webpub-manifest/schema/subcollection.schema.json Can be used as extension point in the Readium Web Publication Manifest.

Constructors

PublicationCollection({Map<String, dynamic> metadata = const {}, List<Link> links = const [], Map<String, List<PublicationCollection>> subcollections = const {}})

Properties

hashCode int
The hash code for this object.
no setterinherited
final
metadata Map<String, dynamic>
final
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
subcollections Map<String, List<PublicationCollection>>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes a PublicationCollection to its RWPM JSON representation.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

collectionsFromJSON(Map<String, dynamic> json, {LinkHrefNormalizer normalizeHref = linkHrefNormalizerIdentity}) Map<String, List<PublicationCollection>>
Parses a map of PublicationCollection indexed by their roles from its RWPM JSON representation.
fromJSON(dynamic json, {LinkHrefNormalizer normalizeHref = linkHrefNormalizerIdentity}) PublicationCollection?
Parses a PublicationCollection from its RWPM JSON representation.