setDisplayId

fun MutableJsonObject.setDisplayId(id: String? = null, force: Boolean = false): String?

Sets display ID to JSON. If ID was not set, sets it to id and returns it back If ID was set and force is false, just returns old ID If ID was set, force is true and id is null, just returns old ID If ID was set, force is true and id is not null, sets ID to id and returns it back