OdlLicenseInfoDocument class
An ODL 1.0 License Info Document — the JSON document returned at the license status URL embedded in an OPDS 2.0 feed.
Required fields: identifier, status, checkouts. Returns null from fromJson if any required field is missing.
Constructors
- OdlLicenseInfoDocument({required String identifier, required OdlLicenseStatus status, required OdlCheckouts checkouts, String? format, DateTime? created, OdlTerms? terms, OdlProtection? protection, Price? price, String? source})
-
const
Properties
- checkouts → OdlCheckouts
-
Checkout counters and active loans.
final
- created → DateTime?
-
Timestamp when the license was issued.
final
- format → String?
-
MIME type of the publication.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- identifier → String
-
Unique URI identifying this license.
final
- price → Price?
-
Purchase price of this license.
final
-
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setter
- protection → OdlProtection?
-
DRM protection info, if any.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → String?
-
URI of the license source.
final
- status → OdlLicenseStatus
-
Current status of the license.
final
- stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.no setterinherited - terms → OdlTerms?
-
Checkout terms, if any.
final
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> ? json) → OdlLicenseInfoDocument?