convertTo

fun <T> convertTo(classOfT: Class<T>): T?

Convert CustomFields value to T typed object.

Parameters

classOfT

Class type for result CustomFields object.

Important: T is a caller-supplied type deserialized via Gson. All constructor properties of T must declare @SerializedName to ensure correct serialization after code shrinking (ProGuard/R8).