XrayConfigDocument class

Typed subset used to generate a basic Xray share-link configuration.

This models logging, inputs, outputs and routing. Preserve a complete raw profile with XrayJsonConfig when it contains additional Core fields. Lists and nested settings are caller-owned; this constructor does not deep-freeze them. toJson requires at least one input and output.

Implemented types

Constructors

XrayConfigDocument({required XrayLog log, required List<XrayInbound> inbounds, required List<XrayOutbound> outbounds, required XrayRouting routing})
Creates a generated configuration from log, inbounds, outbounds and routing. Structural checks occur during toJson.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
inbounds → List<XrayInbound>
Generated inputs; toJson rejects an empty list.
final
log → XrayLog
Logging settings for generated JSON; native VPN preparation can replace log destinations to fit platform storage and diagnostics policy.
final
outbounds → List<XrayOutbound>
Generated outputs in dispatch order; toJson rejects an empty list.
final
routing → XrayRouting
Core routing rules for the generated configuration.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → JsonMap
Returns this value as JSON fields.
override
toString() → String
A string representation of this object.
inherited

Operators

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