RedirectlyLinkResolution class
Represents the resolution of a Redirectly link (permanent or temporary)
Constructors
-
RedirectlyLinkResolution({required String id, required String slug, required String target, required String url, required String type, required bool isExpired, required DateTime createdAt, int? clickCount, DateTime? expiresAt, int? ttlSeconds, Map<
String, dynamic> ? metadata}) -
const
-
RedirectlyLinkResolution.fromJson(Map<
String, dynamic> json) -
Create from JSON response
factory
Properties
- clickCount → int?
-
Click count (only available for permanent links)
final
- createdAt → DateTime
-
When the link was created
final
- expiresAt → DateTime?
-
Expiration date (only for temporary links)
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Unique identifier
final
- isExpired → bool
-
Whether the link is expired (always false for permanent links)
final
- isPermanent → bool
-
Whether this is a permanent link
no setter
- isTemporary → bool
-
Whether this is a temporary link
no setter
-
metadata
→ Map<
String, dynamic> ? -
Link metadata (only for permanent links)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slug → String
-
Link slug
final
- target → String
-
Target URL that the link redirects to
final
- timeUntilExpiration → Duration?
-
Get remaining time until expiration (for temporary links)
no setter
- ttlSeconds → int?
-
TTL in seconds (only for temporary links)
final
- type → String
-
Type of link: 'permanent' or 'temporary'
final
- url → String
-
Full clickable URL
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toRedirectlyLink(
) → RedirectlyLink? - Convert to RedirectlyLink (for permanent links)
-
toRedirectlyTempLink(
) → RedirectlyTempLink? - Convert to RedirectlyTempLink (for temporary links)
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override