android-components / mozilla.components.service.glean.storages / StringsStorageEngineImplementation / deserializeSingleMetric

deserializeSingleMetric

protected open fun deserializeSingleMetric(value: Any?): String? (source)

Overrides GenericScalarStorageEngine.deserializeSingleMetric

Implementor's provided function to convert deserialized 'user' lifetime data to the destination ScalarType.

Parameters

value - loaded from the storage as Any

Return
data as ScalarType or null if deserialization failed