All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kotlin-client.libraries.multiplatform.serial_wrapper_response_map.mustache Maven / Gradle / Ivy

The newest version!
@Serializable
private class {{operationIdCamelCase}}Response(val value: Map) {
    @Serializer({{operationIdCamelCase}}Response::class)
    {{#nonPublicApi}}internal {{/nonPublicApi}}companion object : KSerializer<{{operationIdCamelCase}}Response> {
        private val serializer: KSerializer> = (kotlin.String.serializer() to {{returnBaseType}}.serializer()).map
            override val descriptor = StringDescriptor.withName("{{operationIdCamelCase}}Response")
            override fun serialize(encoder: Encoder, obj: {{operationIdCamelCase}}Response) = serializer.serialize(encoder, obj.value)
            override fun deserialize(decoder: Decoder) = {{operationIdCamelCase}}Response(serializer.deserialize(decoder))
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy