Acquisition class
OPDS Acquisition Object.
https://drafts.opds.io/schema/acquisition-object.schema.json
Constructors
-
Acquisition({required String type, List<
Acquisition> children = const []})
Properties
-
children
→ List<
Acquisition> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mediaType → MediaType
-
Media type of the resource to acquire.
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
- stringify → bool?
-
If set to
true
, the toString method will be overridden to output this instance's props.no setterinherited - type → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes an Acquisition 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(
Map< String, dynamic> ? json) → Acquisition? -
Creates an Acquisition from its JSON representation.
If the acquisition can't be parsed, a warning will be logged with
warnings
. -
fromJSONArray(
List? json) → List< Acquisition> -
Creates a list of Acquisition from its JSON representation.
If an acquisition can't be parsed, a warning will be logged with
warnings
.