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

com.deque.axe.android.moshi.AxePropsAdapter.kt Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
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