Entity class final

Contains entities identified as personally identifiable information (PII) in your transcription output, along with various associated attributes.

Examples include category, confidence score, type, stability score, and start and end times.

Constructors

Entity({num? startTime, num? endTime, String? category, String? type, String? content, double? confidence})
Creates an Entity from the given values.
const
Entity.fromJson(String source)
Creates an Entity from the given JSON string.
factory
Entity.fromMap(Map<String, dynamic> map)
Creates an Entity from the given Map.
factory

Properties

category String?
The category of information identified. The only category is PII.
final
confidence double?
The confidence score associated with the identified PII entity in audio.
final
content String?
The word or words identified as PII.
final
endTime num?
The end time, in milliseconds, of the utterance that was identified as PII.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startTime num?
The start time, in milliseconds, of the utterance that was identified as PII.
final
type String?
The type of PII identified. For example, NAME or CREDIT_DEBIT_NUMBER.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Returns the JSON string representation of this Entity.
toMap() Map<String, dynamic>
Returns the Map representation of this Entity.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited