graphql.nadel.enginekt.util.JsonUtil.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nadel-engine-nextgen Show documentation
Show all versions of nadel-engine-nextgen Show documentation
Nadel is a Java library that combines multiple GrahpQL services together into one API.
The newest version!
package graphql.nadel.enginekt.util
internal fun AnyMap.asJsonMap(): JsonMap {
@Suppress("UNCHECKED_CAST")
return this as JsonMap
}
internal fun AnyMap.asMutableJsonMap(): MutableJsonMap {
@Suppress("UNCHECKED_CAST")
return this as MutableJsonMap
}
internal fun AnyMap?.asNullableJsonMap(): JsonMap? {
@Suppress("UNCHECKED_CAST")
return this as JsonMap?
}