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

handlebars.kotlin-client.infrastructure.Serializer.kt.mustache Maven / Gradle / Ivy

There is a newer version: 1.0.54
Show newest version
package {{packageName}}.infrastructure

import com.squareup.moshi.Moshi
import com.squareup.moshi.adapters.Rfc3339DateJsonAdapter
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import java.util.Date

object Serializer {
    @JvmStatic
    val moshi: Moshi = Moshi.Builder()
            .add(KotlinJsonAdapterFactory())
            .add(Date::class.java, Rfc3339DateJsonAdapter().nullSafe())
            .add(LocalDateTimeAdapter())
            .add(LocalDateAdapter())
            .build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy