Class ContentSerializationUtilKt
-
- All Implemented Interfaces:
public final class ContentSerializationUtilKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> String
encodeConcentrationContentToString(Concentration<T> concentration)
Utility function that converts a Concentration content of type T to a Json String. final static <T extends Any> String
encodeConcentrationContentToString(T content)
Utility function that converts a Concentration content of type T to a Json String. -
-
Method Detail
-
encodeConcentrationContentToString
final static <T extends Any> String encodeConcentrationContentToString(Concentration<T> concentration)
Utility function that converts a Concentration content of type T to a Json String. If the serialization fails (i.e. the content does not provide a serializer), the string representation of the content is returned.
- Parameters:
concentration
- The concentration containing the content to convert.- Returns:
The Json String representation of the concentration content or its string representation.
-
encodeConcentrationContentToString
final static <T extends Any> String encodeConcentrationContentToString(T content)
Utility function that converts a Concentration content of type T to a Json String. If the serialization fails (i.e. the content does not provide a serializer), the string representation of the content is returned.
- Parameters:
content
- The concentration content to convert.- Returns:
The Json String representation of the concentration content or its string representation.
-
-
-
-