@@ -13,6 +13,7 @@ public enum AuthInputPartial: Codable, JSONEncodable, AbstractEncodable {
13
13
case authOAuthPartial( AuthOAuthPartial )
14
14
case authAlgoliaPartial( AuthAlgoliaPartial )
15
15
case authAlgoliaInsightsPartial( AuthAlgoliaInsightsPartial )
16
+ case dictionaryOfStringToString( [ String : String ] )
16
17
17
18
public func encode( to encoder: Encoder ) throws {
18
19
var container = encoder. singleValueContainer ( )
@@ -29,6 +30,8 @@ public enum AuthInputPartial: Codable, JSONEncodable, AbstractEncodable {
29
30
try container. encode ( value)
30
31
case let . authAlgoliaInsightsPartial( value) :
31
32
try container. encode ( value)
33
+ case let . dictionaryOfStringToString( value) :
34
+ try container. encode ( value)
32
35
}
33
36
}
34
37
@@ -46,6 +49,8 @@ public enum AuthInputPartial: Codable, JSONEncodable, AbstractEncodable {
46
49
self = . authAlgoliaPartial( value)
47
50
} else if let value = try ? container. decode ( AuthAlgoliaInsightsPartial . self) {
48
51
self = . authAlgoliaInsightsPartial( value)
52
+ } else if let value = try ? container. decode ( [ String : String ] . self) {
53
+ self = . dictionaryOfStringToString( value)
49
54
} else {
50
55
throw DecodingError . typeMismatch (
51
56
Self . Type. self,
@@ -68,6 +73,8 @@ public enum AuthInputPartial: Codable, JSONEncodable, AbstractEncodable {
68
73
value as AuthAlgoliaPartial
69
74
case let . authAlgoliaInsightsPartial( value) :
70
75
value as AuthAlgoliaInsightsPartial
76
+ case let . dictionaryOfStringToString( value) :
77
+ value as [ String : String ]
71
78
}
72
79
}
73
80
}
0 commit comments