SerialFormat
| Modifier and Type | Field and Description |
|---|---|
| private final T | |
| private final Map | |
| private final List |
| Access | Constructor and Description |
|---|---|
| protected | KotlinSerializationSupport(T format, MimeType... supportedMimeTypes)
Creates a new instance of this support class with the given format and supported mime types. |
| Modifier and Type | Method and Description |
|---|---|
| protected final boolean | Returns: true if type can be serialized; false otherwisethe type to be serialized type, MimeType the mimetype to use (can be mimeType)null)Indicates whether the given type can be serialized using Kotlin serialization. |
| protected final T | |
| private static boolean | hasPolymorphism(kotlinx.
|
| protected final kotlinx.serialization.KSerializer | Returns: a resolved serializer for the given type, ornullthe type to find a serializer for resolvableType)Returns the serializer that can (de)serialize instances of the given type. |
| protected final List | |
| private boolean |
| format | back to summary |
|---|---|
| private final T format | |
| serializerCache | back to summary |
|---|---|
| private final Map<Type, kotlinx.serialization.KSerializer<Object>> serializerCache | |
| supportedMimeTypes | back to summary |
|---|---|
| private final List<MimeType> supportedMimeTypes | |
| KotlinSerializationSupport | back to summary |
|---|---|
| protected KotlinSerializationSupport(T format, MimeType... supportedMimeTypes) Creates a new instance of this support class with the given format and supported mime types. | |
| canSerialize | back to summary |
|---|---|
| protected final boolean canSerialize(ResolvableType type, MimeType mimeType) Indicates whether the given type can be serialized using Kotlin serialization.
| |
| format | back to summary |
|---|---|
| protected final T format() Returns the format. | |
| hasPolymorphism | back to summary |
|---|---|
| private static boolean hasPolymorphism(kotlinx. | |
| serializer | back to summary |
|---|---|
| protected final kotlinx.serialization.KSerializer Returns the serializer that can (de)serialize instances of the given
type. If no serializer can be found, or if
| |
| supportedMimeTypes | back to summary |
|---|---|
| protected final List Returns the supported mime types. | |
| supports | back to summary |
|---|---|
| private boolean supports(MimeType mimeType) | |