public static AccessConfig FromJson(string json) { var result = new AccessConfig(); var options = new JsonDocumentOptions { AllowTrailingCommas = true }; using var document = JsonDocument.Parse(json, options); result.RestoreFromJsonDocument(document); return(result); }
public void Config(AccessConfig config) { _accessConfig = config; }
public void Config(AccessConfig config) { Service.Config(config); }