Subject class
Subject of a Publication.
See https://github.com/readium/webpub-manifest/tree/master/contexts/default#subjects
- Mixed-in types
-
- JSONable
Constructors
-
Subject({required LocalizedString localizedName, LocalizedString? localizedSortAs, String? scheme, String? code, List<
Link> links = const []}) -
const
- Subject.fromString(String name)
-
factory
Properties
- code → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
links
→ List<
Link> -
final
- localizedName → LocalizedString
-
final
- localizedSortAs → LocalizedString?
-
final
- name → String
-
Returns the default translation string for the localizedName.
no setter
-
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
- scheme → String?
-
final
- 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 the object to its 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}) → Subject? - Parses a Subject from its RWPM JSON representation.
-
fromJSONArray(
dynamic json, {LinkHrefNormalizer normalizeHref = linkHrefNormalizerIdentity}) → List< Subject> - Creates a list of Subject from its RWPM JSON representation.