getObject

fun <T> getObject(key: String?, defaultValue: T, converter: Preference.Converter<T>): Preference<T>

Creates a T preference for the key using the converter, and with a default of defaultValue.