DocumentAttribute

data class DocumentAttribute(val type: DocumentAttributeType, val identifier: String, val displayName: String, val description: String, val icon: Icon?, val sampleValueMdoc: DataItem?, val sampleValueJson: JsonElement?)

Class containing the metadata of an attribute/data element/claim of a Document Type

Constructors

Link copied to clipboard
constructor(type: DocumentAttributeType, identifier: String, displayName: String, description: String, icon: Icon?, sampleValueMdoc: DataItem?, sampleValueJson: JsonElement?)

Properties

Link copied to clipboard

a description of the attribute.

Link copied to clipboard

the name suitable for display of the attribute.

Link copied to clipboard
val icon: Icon?

the icon for the attribute, if available.

Link copied to clipboard

the identifier of this attribute.

Link copied to clipboard
val sampleValueJson: JsonElement?

a sample value for the attribute for JSON-based credentials, if available.

Link copied to clipboard

a sample value for the attribute for ISO mdoc credentials, if available.

Link copied to clipboard

the datatype of this attribute.