BatchDetectEntitiesItemResult.fromJson constructor

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

Implementation

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