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

deserializeSingleMetric

protected abstract fun deserializeSingleMetric(value: Any?): ScalarType? (source)

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