DetectPHIResponse.fromJson constructor

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

Implementation

factory DetectPHIResponse.fromJson(Map<String, dynamic> json) {
  return DetectPHIResponse(
    entities: (json['Entities'] as List)
        .whereNotNull()
        .map((e) => Entity.fromJson(e as Map<String, dynamic>))
        .toList(),
    modelVersion: json['ModelVersion'] as String,
    paginationToken: json['PaginationToken'] as String?,
  );
}