set

fun <model> set(key: String, value: model)

Function to set a Object value to preference

Parameters

key

String key for calling it later

value

model value to store

model

Class to map into json object