toggle menu
Simple Robot 组件 | QQ Guild
4.1.2
common
switch theme
search in API
simbot-component-qq-guild-api
/
love.forte.simbot.qguild.api
/
NumberAsBooleanSerializer
Number
As
Boolean
Serializer
object
NumberAsBooleanSerializer
:
KSerializer
<
Boolean
>
(
source
)
0
-> false
other -> true, decode true to
1
Members
Properties
descriptor
Link copied to clipboard
open
override
val
descriptor
:
SerialDescriptor
Functions
deserialize
Link copied to clipboard
open
override
fun
deserialize
(
decoder
:
Decoder
)
:
Boolean
serialize
Link copied to clipboard
open
override
fun
serialize
(
encoder
:
Encoder
,
value
:
Boolean
)