profile

fun <T> User.profile(serializer: KSerializer<T>): T

Returns the profile for this user as a T.

Note This method supports full document serialization. The user profile will be deserialized with serializer and decoded with AppConfiguration.ejson.

Return

The profile for this user.

Parameters

T

the type to decoded the user profile.

serializer

deserialization strategy for T.


Returns the profile for this user as a T.

Note This method supports full document serialization. The user profile will be deserialized with the built-in serializer for T and decoded with AppConfiguration.ejson.

Return

The profile for this user.

Parameters

T

the type to decoded the user profile.