Class ContentSerializationUtilKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • 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.