[android-components](../../index.md) / [mozilla.components.service.fxa](../index.md) / [FxaDeviceSettingsCache](index.md) / [fromJSON](./from-j-s-o-n.md)

# fromJSON

`fun fromJSON(obj: <ERROR CLASS>): DeviceSettings` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/FxaDeviceSettingsCache.kt#L40)

Overrides [SharedPreferencesCache.fromJSON](../../mozilla.components.support.base.utils/-shared-preferences-cache/from-j-s-o-n.md)

A conversion method from [JSONObject](#) to [T](../../mozilla.components.support.base.utils/-shared-preferences-cache/index.md#T).

