Link class

Represents a hyperlink from the containing resource to a URI.

Constructors

Constructs a new Link with an optional relation type and URL.
Link.fromJson(JsonObject _json)
Constructs a new Link instance from the provided JSON object.

Properties

hashCode int
The hash code for this object.
no setteroverride
json → JsonObject
Converts this Link instance to a JSON object.
no setter
relation String?
The type of relationship this link represents (e.g., 'next', 'previous').
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url Uri?
The URL that this link points to.
no setter

Methods

copyWith({String? relation, Uri? url}) Link
Makes a deep copy of this Link.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

fieldDefinitions → const List<FieldDefinition<Object>>
All field definitions for Link
relationField → const FieldDefinition<String>
Field definition for relation
urlField → const FieldDefinition<Uri>
Field definition for url