Availability class

Indicated the availability of a given resource.

https://drafts.opds.io/schema/properties.schema.json

@param since Timestamp for the previous state change. @param until Timestamp for the next state change.

Implemented types

Constructors

Availability({required AvailabilityState state, DateTime? since, DateTime? until})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
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
since → DateTime?
final
state → AvailabilityState
final
stringify → bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
until → DateTime?
final

Methods

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

Operators

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

Static Methods

fromJson(Map<String, dynamic>? json) → Availability?
Creates an Availability from its JSON representation. If the availability can't be parsed, a warning will be logged with warnings.