RedirectlyTempLink class

Represents a temporary Redirectly link with expiration

Constructors

RedirectlyTempLink({required String slug, required String target, required String url, required DateTime expiresAt, required DateTime createdAt, int? ttlSeconds})
const
RedirectlyTempLink.fromJson(Map<String, dynamic> json)
Create from JSON response
factory

Properties

createdAt DateTime
When the link was created
final
expiresAt DateTime
When the link expires
final
hashCode int
The hash code for this object.
no setteroverride
isExpired bool
Check if the link is expired
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slug String
Unique slug identifier for the temporary link
final
target String
Target URL that the link redirects to
final
timeUntilExpiration Duration
Get remaining time until expiration
no setter
ttlSeconds int?
TTL in seconds from creation
final
url String
Full clickable URL (e.g., https://username.redirectly.app/slug)
final

Methods

copyWith({String? slug, String? target, String? url, DateTime? expiresAt, DateTime? createdAt, int? ttlSeconds}) RedirectlyTempLink
Create a copy with updated fields
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to JSON for API requests
toString() String
A string representation of this object.
override

Operators

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