com.svix.kotlin.internal.infrastructure.URIAdapter.kt Maven / Gradle / Ivy
package com.svix.kotlin.internal.infrastructure
import com.squareup.moshi.FromJson
import com.squareup.moshi.ToJson
import java.net.URI
class URIAdapter {
@ToJson
fun toJson(uri: URI) = uri.toString()
@FromJson
fun fromJson(s: String): URI = URI.create(s)
}