Builder

Builder class for com.urbanairship.json.JsonMap Objects.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(): JsonMap

Create the JSON map.

Link copied to clipboard
fun put(key: String, value: Boolean): JsonMap.Builder
fun put(key: String, value: Char): JsonMap.Builder
fun put(key: String, value: Double): JsonMap.Builder
fun put(key: String, value: Int): JsonMap.Builder
fun put(key: String, value: Long): JsonMap.Builder
fun put(key: String, value: String?): JsonMap.Builder

Add a key and value to the JSON map.

Link copied to clipboard

Add a pre-existing JSON map to the JSON map.

Link copied to clipboard
fun putOpt(key: String, value: Any?): JsonMap.Builder

Add a key and value to the JSON map.