mirror of
https://github.com/InsanusMokrassar/SDI.git
synced 2024-12-28 03:27:23 +00:00
refactor renames
This commit is contained in:
parent
b3966beb32
commit
fc0bd288e3
5
src/commonMain/kotlin/com/insanusmokrassar/sdi/Module.kt
Normal file
5
src/commonMain/kotlin/com/insanusmokrassar/sdi/Module.kt
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
package com.insanusmokrassar.sdi
|
||||||
|
|
||||||
|
import kotlinx.serialization.ContextualSerialization
|
||||||
|
|
||||||
|
class Module internal constructor(base: Map<String, @ContextualSerialization Any>) : Map<String, Any> by base
|
@ -6,8 +6,6 @@ import kotlinx.serialization.internal.HashMapSerializer
|
|||||||
import kotlinx.serialization.internal.StringSerializer
|
import kotlinx.serialization.internal.StringSerializer
|
||||||
import kotlinx.serialization.json.*
|
import kotlinx.serialization.json.*
|
||||||
|
|
||||||
class Module internal constructor(base: Map<String, @ContextualSerialization Any>) : Map<String, Any> by base
|
|
||||||
|
|
||||||
@ImplicitReflectionSerializer
|
@ImplicitReflectionSerializer
|
||||||
internal object ModuleDeserializerStrategy : DeserializationStrategy<Module> {
|
internal object ModuleDeserializerStrategy : DeserializationStrategy<Module> {
|
||||||
private val internalSerializer = HashMapSerializer(StringSerializer, ContextSerializer(Any::class))
|
private val internalSerializer = HashMapSerializer(StringSerializer, ContextSerializer(Any::class))
|
Loading…
Reference in New Issue
Block a user