InferICD10CMResponse.fromJson constructor

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

Implementation

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