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

model.UrlJSONCodec.kt Maven / Gradle / Ivy

There is a newer version: 0.9.27
Show newest version
package com.github.fluidsonic.baku

import com.github.fluidsonic.fluid.json.*
import io.ktor.http.Url


internal object UrlJSONCodec : AbstractJSONCodec() {

	override fun JSONDecoder.decode(valueType: JSONCodingType) =
		Url(readString())


	override fun JSONEncoder.encode(value: Url) {
		writeString(value.toString())
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy