CreateLinkOptions class

Configuration options used when creating a new short link programmatically.

Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

CreateLinkOptions({String? templateId, String? templateSlug, Map<String, String>? deepLinkParameters, String? title, String? description, String? customCode, UTMParameters? utmParameters, String? externalUserId})
Creates link creation options
const
CreateLinkOptions.fromJson(Map<String, dynamic> json)
JSON serialization
factory

Properties

customCode String?
Custom short code (auto-generated if omitted)
final
deepLinkParameters Map<String, String>?
Deep link parameters for in-app routing (e.g., {"route": "VIDEO_VIEWER", "id": "..."})
final
description String?
Link description
final
externalUserId String?
Identifier for the app user creating the link (enables per-user deduplication and share attribution)
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
templateId String?
Template ID (auto-selected if omitted)
final
templateSlug String?
Template slug (only needed with templateId)
final
title String?
Link title
final
utmParameters UTMParameters?
UTM parameters for campaign tracking
final

Methods

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

Operators

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