blob: 13038dd7a5167c279b3a298a2bf1419155bd15db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<HTML>
<HEAD>
<meta charset="UTF-8">
<title>JSON.toObj - kvision</title>
<link rel="stylesheet" href="../../../style.css">
</HEAD>
<BODY>
<a href="../../index.html">kvision</a> / <a href="../index.html">pl.treksoft.kvision.utils</a> / <a href="index.html">JSON</a> / <a href="./to-obj.html">toObj</a><br/>
<br/>
<h1>toObj</h1>
<a name="pl.treksoft.kvision.utils.JSON$toObj(pl.treksoft.kvision.utils.JSON.toObj.T)"></a>
<code><span class="keyword">inline</span> <span class="keyword">fun </span><span class="symbol"><</span><span class="keyword">reified</span> <span class="identifier">T</span> <span class="symbol">:</span> <a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html"><span class="identifier">Any</span></a><span class="symbol">></span> <a href="to-obj.html#T"><span class="identifier">T</span></a><span class="symbol">.</span><span class="identifier">toObj</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="keyword">dynamic</span></code>
<p>An extension function to convert Serializable object to JS dynamic object</p>
<a name="pl.treksoft.kvision.utils.JSON$toObj(pl.treksoft.kvision.utils.JSON.toObj.T, kotlinx.serialization.SerializationStrategy((pl.treksoft.kvision.utils.JSON.toObj.T)))"></a>
<code><span class="keyword">fun </span><span class="symbol"><</span><span class="identifier">T</span><span class="symbol">></span> <a href="to-obj.html#T"><span class="identifier">T</span></a><span class="symbol">.</span><span class="identifier">toObj</span><span class="symbol">(</span><span class="identifier" id="pl.treksoft.kvision.utils.JSON$toObj(pl.treksoft.kvision.utils.JSON.toObj.T, kotlinx.serialization.SerializationStrategy((pl.treksoft.kvision.utils.JSON.toObj.T)))/serializer">serializer</span><span class="symbol">:</span> <span class="identifier">SerializationStrategy</span><span class="symbol"><</span><a href="to-obj.html#T"><span class="identifier">T</span></a><span class="symbol">></span><span class="symbol">)</span><span class="symbol">: </span><span class="keyword">dynamic</span></code>
<p>An extension function to convert Serializable object to JS dynamic object</p>
<h3>Parameters</h3>
<p><a name="serializer"></a>
<code>serializer</code> - a serializer for T</p>
</BODY>
</HTML>
|