airwallex-android
Toggle table of contents
6.3.1
androidJvm
Platform filter
androidJvm
Switch theme
Search in API
airwallex-android
components-core
/
com.airwallex.android.core.util
/
AirwallexJsonUtils
Airwallex
Json
Utils
object
AirwallexJsonUtils
Members
Functions
json
Array
To
List
Link copied to clipboard
fun
jsonArrayToList
(
jsonArray
:
JSONArray
?
)
:
List
<
Any
>
?
opt
Boolean
Link copied to clipboard
fun
optBoolean
(
jsonObject
:
JSONObject
,
@
Size
(
min
=
1
)
fieldName
:
String
)
:
Boolean
opt
Double
Link copied to clipboard
fun
optDouble
(
jsonObject
:
JSONObject
,
@
Size
(
min
=
1
)
fieldName
:
String
)
:
Double
?
opt
Int
Link copied to clipboard
fun
optInt
(
jsonObject
:
JSONObject
,
@
Size
(
min
=
1
)
fieldName
:
String
)
:
Int
?
opt
Map
Link copied to clipboard
fun
optMap
(
jsonObject
:
JSONObject
,
@
Size
(
min
=
1
)
fieldName
:
String
)
:
Map
<
String
,
Any
?
>
?
opt
String
Link copied to clipboard
@
JvmStatic
fun
optString
(
jsonObject
:
JSONObject
?
,
@
Size
(
min
=
1
)
fieldName
:
String
)
:
String
?