ClassifierMetadata.fromJson constructor

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

Implementation

factory ClassifierMetadata.fromJson(Map<String, dynamic> json) {
  return ClassifierMetadata(
    evaluationMetrics: json['EvaluationMetrics'] != null
        ? ClassifierEvaluationMetrics.fromJson(
            json['EvaluationMetrics'] as Map<String, dynamic>)
        : null,
    numberOfLabels: json['NumberOfLabels'] as int?,
    numberOfTestDocuments: json['NumberOfTestDocuments'] as int?,
    numberOfTrainedDocuments: json['NumberOfTrainedDocuments'] as int?,
  );
}