com.deque.axe.android.moshi.AxePropsAdapter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axe-devtools-android-core Show documentation
Show all versions of axe-devtools-android-core Show documentation
The Axe Devtools Android Core Library
package com.deque.axe.android.moshi
import com.deque.axe.android.wrappers.AxeProps
import com.squareup.moshi.FromJson
import com.squareup.moshi.ToJson
class AxePropsAdapter {
@FromJson
fun fromJson(axeProps: Map): AxeProps {
return AxeProps().also { it.putAll(axeProps) }
}
@ToJson
fun toJson(axeProps: AxeProps): Map {
return axeProps.toMap()
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy