DocumentKeyValuePair Class
- java.
lang. Object - com.
azure. ai. documentintelligence. models. DocumentKeyValuePair
- com.
Implements
public final class DocumentKeyValuePair
implements JsonSerializable<DocumentKeyValuePair>
An object representing a form field with distinct field label (key) and field value (may be empty).
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Document |
fromJson(JsonReader jsonReader)
Reads an instance of Document |
double |
getConfidence()
Get the confidence property: Confidence of correctly extracting the key-value pair. |
Document |
getKey()
Get the key property: Field label of the key-value pair. |
Document |
getValue()
Get the value property: Field value of the key-value pair. |
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Method Details
fromJson
public static DocumentKeyValuePair fromJson(JsonReader jsonReader)
Reads an instance of DocumentKeyValuePair from the JsonReader.
Parameters:
Returns:
Throws:
getConfidence
public double getConfidence()
Get the confidence property: Confidence of correctly extracting the key-value pair.
Returns:
getKey
public DocumentKeyValueElement getKey()
Get the key property: Field label of the key-value pair.
Returns:
getValue
public DocumentKeyValueElement getValue()
Get the value property: Field value of the key-value pair.
Returns:
toJson
Applies to
Azure SDK for Java