It would have been nice to add a Kotlin module for...
# squarelibraries
d
It would have been nice to add a Kotlin module for Moshi with functions like this, no? 😉
Copy code
inline fun <reified T> Moshi.listAdapter(): JsonAdapter<List<T>> =
		Types.newParameterizedType(
				List::class.java, T::class.java
		).let { this.adapter<List<T>>(it) }