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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy