Collection class

Contributor Object for the Readium Web Publication Manifest. https://readium.org/webpub-manifest/schema/contributor-object.schema.json

@param localizedName The name of the contributor. @param identifier An unambiguous reference to this contributor. @param sortAs The string used to sort the name of the contributor. @param roles The roles of the contributor in the publication making. @param position The position of the publication in this collection/series, when the contributor represents a collection. @param links Used to retrieve similar publications for the given contributor.

Mixed-in types
  • JSONable
Implementers

Constructors

Collection({required LocalizedString localizedName, String? identifier, LocalizedString? localizedSortAs, Set<String> roles = const {}, double? position, List<Link> links = const []})

Properties

hashCode → int
The hash code for this object.
no setterinherited
identifier → String?
(Nullable) An unambiguous reference to this contributor.
final
final
localizedName → LocalizedString
The name of the contributor.
final
localizedSortAs → LocalizedString?
(Nullable) The string used to sort the name of the contributor.
final
name → String
Returns the default translation string for the localizedName.
no setter
position → double?
(Nullable) The position of the publication in this collection/series, when the contributor represents a collection.
final
props → List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
roles → Set<String>
The role of the contributor in the publication making.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sortAs → String?
Returns the default translation string for the localizedSortAs.
no setter
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

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

Operators

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

Static Methods

fromJson(dynamic json, {LinkHrefNormalizer normalizeHref = linkHrefNormalizerIdentity}) → Collection?
Parses a Contributor from its RWPM JSON representation.
fromJSONArray(dynamic json, {LinkHrefNormalizer normalizeHref = linkHrefNormalizerIdentity}) → List<Collection>
Creates a list of Collection from its RWPM JSON representation.