com.caesarealabs.rpc4k.runtime.implementation.serializers.MutableSerializers.kt Maven / Gradle / Ivy
@file:Suppress("FunctionName", "UNCHECKED_CAST")
package com.caesarealabs.rpc4k.runtime.implementation.serializers
// The immutable serializers can handle the mutable objects just fine
//fun MutableMapSerializer(keySerializer: KSerializer, valueSerializer: KSerializer): KSerializer> =
// MapSerializer(keySerializer, valueSerializer) as KSerializer>
//
//fun MutableListSerializer(elementSerializer: KSerializer): KSerializer> =
// ListSerializer(elementSerializer) as KSerializer>
//
//fun MutableSetSerializer(elementSerializer: KSerializer): KSerializer> =
// SetSerializer(elementSerializer) as KSerializer>