Contributor class
Contributor
See: https://readium.org/webpub-manifest/schema/contributor.schema.json
- Inheritance
-
- Object
- AdditionalProperties
- Contributor
- Implemented types
- Annotations
Constructors
-
Contributor({required LocalizedString? localizedName, double? position, String? identifier, List<
AltIdentifier> ? altIdentifiers, LocalizedString? localizedSortAs, List<Link> ? links, List<String> ? roles, Map<String, dynamic> additionalProperties = const {}}) -
const
- Contributor.fromJson(dynamic json)
-
factory
-
Contributor.fromJsonMap(Map<
String, dynamic> json) -
factory
- Contributor.fromJsonString(String name)
-
factory
Properties
-
additionalProperties
→ Map<
String, dynamic> -
finalinherited
-
altIdentifiers
→ List<
AltIdentifier> ? -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String?
-
finalinherited
-
links
→ List<
Link> ? -
finalinherited
- localizedName → LocalizedString?
-
finalinherited
- localizedSortAs → LocalizedString?
-
finalinherited
- name → String?
-
no setterinherited
- position → double?
-
finalinherited
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
-
roles
→ List<
String> ? -
All values for the role element should be based on https://www.loc.gov/marc/relators/relaterm.html
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sortAs → String?
-
no setterinherited
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited
Methods
-
copyAdditionalProperties(
{Object? additionalProperties = unset}) → Map< String, dynamic> -
Returns a new Map<String, dynamic> with the merged additional properties.
inherited
-
copyWith(
{Object? position = unset, Object? localizedName = unset, Object? identifier = unset, Object? altIdentifiers = unset, Object? localizedSortAs = unset, Object? links = unset, Object? roles = unset, Object? additionalProperties = unset}) → Contributor -
getAdditionalDateTime(
String key) → DateTime? -
Helper to get a DateTime from an additional property value.
inherited
-
getAdditionalEnum<
T extends Enum> (String key, List< T> enumValues) → T? -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
safeGetAdditionalValue<
T> (String key) → T? -
Safely get an additional property value of type
T.inherited -
toJson(
) → dynamic -
Serializes the object to its JSON representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String key) → dynamic -
Syntactic sugar to access the additionalProperties values by subscripting directly.
obj["layout"] == obj.additionalProperties["layout"]inherited
Static Methods
-
listFromJson(
dynamic json) → List< Contributor>