SingBox class
sing-box 配置顶层模型,对应整份配置 JSON。
- Annotations
-
- @JsonSerializable.new(explicitToJson: true, includeIfNull: false)
Constructors
-
SingBox({LogOptions? log, required DNS dns, required List<
Inbound> inbounds, required List<Outbound> outbounds, required RouteOptions route, ExperimentalOptions? experimental}) -
构造顶层配置;可空段省略时为
null。 -
SingBox.fromJson(Map<
String, dynamic> json) -
从整份配置 JSON 反序列化;未建模顶层段收入 unknownSections。
factory
Properties
- dns ↔ DNS
-
顶层
dns配置段(必填)。getter/setter pair - experimental ↔ ExperimentalOptions?
-
顶层
experimental配置段(可空)。getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
-
inbounds
↔ List<
Inbound> -
顶层
inbounds列表(必填)。getter/setter pair - log ↔ LogOptions?
-
顶层
log配置段(可空)。getter/setter pair -
outbounds
↔ List<
Outbound> -
顶层
outbounds列表(必填)。getter/setter pair - route ↔ RouteOptions
-
顶层
route配置段(必填)。getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
unknownSections
→ Map<
String, dynamic> -
未建模顶层段(ntp 等)原样透传:读入收存、输出合并。
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - 序列化为 JSON;unknownSections 原样合并输出。
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited