A2uiBooleanSchema


class A2uiBooleanSchema : A2uiSchema


Schema representing a boolean literal.

Summary

Public companion properties

A2uiBooleanSchema

Public constructors

A2uiBooleanSchema(
    description: String?,
    keywords: List<A2uiSchemaKeyword<Boolean>>
)

Public functions

open JsonElement

Returns the JsonElement hierarchy representing this schema.

open String

Public properties

open String?

semantic description of the schema

open List<A2uiSchemaKeyword<Boolean>>

JSON Schema keywords applied to this schema node

Inherited functions

From androidx.a2ui.model.schema.A2uiSchema
open operator Boolean
equals(other: Any?)
open Int
String

Serializes this schema to a JSON Schema string representation.

Public companion properties

INSTANCE

val INSTANCEA2uiBooleanSchema

Public constructors

A2uiBooleanSchema

A2uiBooleanSchema(
    description: String? = null,
    keywords: List<A2uiSchemaKeyword<Boolean>> = emptyList()
)

Public functions

toJsonElement

Added in 1.0.0-alpha01
open fun toJsonElement(): JsonElement

Returns the JsonElement hierarchy representing this schema.

Returns
JsonElement

the JsonElement hierarchy representing this schema

toString

open fun toString(): String

Public properties

description

open val descriptionString?

semantic description of the schema

keywords

open val keywordsList<A2uiSchemaKeyword<Boolean>>

JSON Schema keywords applied to this schema node