EntityRecognizerMetadata.fromJson constructor
EntityRecognizerMetadata.fromJson(
- Map<String, dynamic> json
)
Implementation
factory EntityRecognizerMetadata.fromJson(Map<String, dynamic> json) {
return EntityRecognizerMetadata(
entityTypes: (json['EntityTypes'] as List?)
?.whereNotNull()
.map((e) => EntityRecognizerMetadataEntityTypesListItem.fromJson(
e as Map<String, dynamic>))
.toList(),
evaluationMetrics: json['EvaluationMetrics'] != null
? EntityRecognizerEvaluationMetrics.fromJson(
json['EvaluationMetrics'] as Map<String, dynamic>)
: null,
numberOfTestDocuments: json['NumberOfTestDocuments'] as int?,
numberOfTrainedDocuments: json['NumberOfTrainedDocuments'] as int?,
);
}