File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ public struct Settings: Codable {
12
12
public var plan : JSON ? = nil
13
13
public var edgeFunction : JSON ? = nil
14
14
public var middlewareSettings : JSON ? = nil
15
+ public var metrics : JSON ? = nil
16
+ public var consentSettings : JSON ? = nil
15
17
16
18
public init ( writeKey: String , apiHost: String ) {
17
19
integrations = try ! JSON ( [
@@ -37,6 +39,8 @@ public struct Settings: Codable {
37
39
self . plan = try ? values. decode ( JSON . self, forKey: CodingKeys . plan)
38
40
self . edgeFunction = try ? values. decode ( JSON . self, forKey: CodingKeys . edgeFunction)
39
41
self . middlewareSettings = try ? values. decode ( JSON . self, forKey: CodingKeys . middlewareSettings)
42
+ self . metrics = try ? values. decode ( JSON . self, forKey: CodingKeys . metrics)
43
+ self . consentSettings = try ? values. decode ( JSON . self, forKey: CodingKeys . consentSettings)
40
44
}
41
45
42
46
static public func load( from url: URL ? ) -> Settings ? {
@@ -56,6 +60,8 @@ public struct Settings: Codable {
56
60
case plan
57
61
case edgeFunction
58
62
case middlewareSettings
63
+ case metrics
64
+ case consentSettings
59
65
}
60
66
61
67
/**
You can’t perform that action at this time.
0 commit comments