Contributor 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.

Inheritance
Available Extensions

Constructors

Contributor({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.
finalinherited
finalinherited
localizedName LocalizedString
The name of the contributor.
finalinherited
localizedSortAs LocalizedString?
(Nullable) The string used to sort the name of the contributor.
finalinherited
name String
Returns the default translation string for the localizedName.
no setterinherited
position double?
(Nullable) The position of the publication in this collection/series, when the contributor represents a collection.
finalinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setterinherited
roles Set<String>
The role of the contributor in the publication making.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sortAs String?
Returns the default translation string for the localizedSortAs.
no setterinherited
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.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(dynamic json, {LinkHrefNormalizer normalizeHref = linkHrefNormalizerIdentity}) Contributor?
Parses a Contributor from its RWPM JSON representation.
override
fromJsonArray(dynamic json, {LinkHrefNormalizer normalizeHref = linkHrefNormalizerIdentity}) List<Contributor>
Creates a list of Contributor from its RWPM JSON representation.
fromString(String name) Contributor