PiiEntity.fromJson constructor

PiiEntity.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PiiEntity.fromJson(Map<String, dynamic> json) {
  return PiiEntity(
    beginOffset: json['BeginOffset'] as int?,
    endOffset: json['EndOffset'] as int?,
    score: json['Score'] as double?,
    type: (json['Type'] as String?)?.toPiiEntityType(),
  );
}