//Android/br.com.arch.toolkit.android.storage/ComplexDataParser
[android]
interface ComplexDataParser
Contract used by storage delegates to serialize and deserialize non-primitive values.
Provide a platform-specific implementation (for example kotlinx.serialization or Moshi) and register it through Storage.Settings.setComplexDataParser.
| Name | Summary |
|---|---|
| fromJson | [android] abstract fun <T : Any> fromJson(json: String, classToParse: KClass<T>): T Decodes json into an instance of classToParse. |
| toJson | [android] abstract fun <T : Any> toJson(data: T): String Encodes data as JSON. |