Skip to content

Commit 5de4087

Browse files
committed
Update to FirebaseDataEncoder
1 parent 80bf28e commit 5de4087

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseRemoteConfigSwift/Sources/Codable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public extension RemoteConfigValue {
3232
guard let jsonValue = self.jsonValue else {
3333
throw RemoteConfigCodableError.jsonValueError
3434
}
35-
return try StructureDecoder().decode(Value.self, from: jsonValue)
35+
return try FirebaseDataDecoder().decode(Value.self, from: jsonValue)
3636
}
3737
}
3838

@@ -43,7 +43,7 @@ public extension RemoteConfig {
4343
* - Parameter value: The object to use to set the defaults.
4444
*/
4545
func setDefaults<Value: Encodable>(from value: Value) throws {
46-
let encoded = try StructureEncoder().encode(value) as! [String: NSObject]
46+
let encoded = try FirebaseDataEncoder().encode(value) as! [String: NSObject]
4747
setDefaults(encoded)
4848
}
4949
}

0 commit comments

Comments
 (0)