FunctionType

class FunctionType<T : Any?>


Represents and passes the type information for an automated function call.

Summary

Public constructors

<T : Any?> FunctionType(name: String, parse: (String?) -> T?)

Public properties

String

: the enum name of the type

(String?) -> T?

: the deserialization function

Public companion properties

ARRAY

val ARRAYFunctionType<List<String>>

BOOLEAN

val BOOLEANFunctionType<Boolean>

INTEGER

val INTEGERFunctionType<Long>

NUMBER

val NUMBERFunctionType<Double>

OBJECT

val OBJECTFunctionType<JSONObject>

STRING

val STRINGFunctionType<String>

Public constructors

FunctionType

<T : Any?> FunctionType(name: String, parse: (String?) -> T?)

Public properties

name

val nameString

: the enum name of the type

parse

val parse: (String?) -> T?

: the deserialization function