DetectPiiEntitiesResponse.fromJson constructor

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

Implementation

factory DetectPiiEntitiesResponse.fromJson(Map<String, dynamic> json) {
  return DetectPiiEntitiesResponse(
    entities: (json['Entities'] as List?)
        ?.whereNotNull()
        .map((e) => PiiEntity.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}