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

model.UrlJSONCodec.kt Maven / Gradle / Ivy

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