url/xray_json library

Functions

decodeXrayJson(String input) → Object?
Decode one Xray document (or subscription array) with Core-style comments.
foldXraySchemaField(String key) → String
Go's struct-field matching against ASCII Xray schema names. Dictionary keys are caller data and must never be normalized using this helper.
readXraySchemaField(Map<String, dynamic> object, String field) → Object?
Read one inspected schema field without changing the imported document. Returns null for an absent or explicitly null field in object. Throws ArgumentError if several keys match the same schema field. Do not use this lookup to fold arbitrary host/header/attribute dictionary keys. Native adapters also reject ambiguous aliases before adding private state.