ConfigDecodableBridge
public final class ConfigDecodableBridge<T> : ConfigBridge<T> where T : Decodable
ConfigBridge for Decodable
Note
You can’t set default value if a value isDecodasble
object, not Encodable
object.
If you can set default value, Please make object conform to Encodable
and use ConfigCodableBridge
.
-
Declaration
Swift
public override func save(key: String, value: T?, defaultsStore: DefaultsStore)
-
Declaration
Swift
public override func get(key: String, remoteConfig: RemoteConfig, decoder: JSONDecoder) -> T?
-
Declaration
Swift
public override func get(key: String, defaultsStore: DefaultsStore, decoder: JSONDecoder) -> T?