@@ -13,6 +13,7 @@ public enum AuthInputPartial: Codable, JSONEncodable, AbstractEncodable {
1313 case authOAuthPartial( AuthOAuthPartial )
1414 case authAlgoliaPartial( AuthAlgoliaPartial )
1515 case authAlgoliaInsightsPartial( AuthAlgoliaInsightsPartial )
16+ case dictionaryOfStringToString( [ String : String ] )
1617
1718 public func encode( to encoder: Encoder ) throws {
1819 var container = encoder. singleValueContainer ( )
@@ -29,6 +30,8 @@ public enum AuthInputPartial: Codable, JSONEncodable, AbstractEncodable {
2930 try container. encode ( value)
3031 case let . authAlgoliaInsightsPartial( value) :
3132 try container. encode ( value)
33+ case let . dictionaryOfStringToString( value) :
34+ try container. encode ( value)
3235 }
3336 }
3437
@@ -46,6 +49,8 @@ public enum AuthInputPartial: Codable, JSONEncodable, AbstractEncodable {
4649 self = . authAlgoliaPartial( value)
4750 } else if let value = try ? container. decode ( AuthAlgoliaInsightsPartial . self) {
4851 self = . authAlgoliaInsightsPartial( value)
52+ } else if let value = try ? container. decode ( [ String : String ] . self) {
53+ self = . dictionaryOfStringToString( value)
4954 } else {
5055 throw DecodingError . typeMismatch (
5156 Self . Type. self,
@@ -68,6 +73,8 @@ public enum AuthInputPartial: Codable, JSONEncodable, AbstractEncodable {
6873 value as AuthAlgoliaPartial
6974 case let . authAlgoliaInsightsPartial( value) :
7075 value as AuthAlgoliaInsightsPartial
76+ case let . dictionaryOfStringToString( value) :
77+ value as [ String : String ]
7178 }
7279 }
7380}
0 commit comments