ModelMetrics.fromJson constructor

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

Implementation

factory ModelMetrics.fromJson(Map<String, dynamic> json) {
  return ModelMetrics(
    bias: json['Bias'] != null
        ? Bias.fromJson(json['Bias'] as Map<String, dynamic>)
        : null,
    explainability: json['Explainability'] != null
        ? Explainability.fromJson(
            json['Explainability'] as Map<String, dynamic>)
        : null,
    modelDataQuality: json['ModelDataQuality'] != null
        ? ModelDataQuality.fromJson(
            json['ModelDataQuality'] as Map<String, dynamic>)
        : null,
    modelQuality: json['ModelQuality'] != null
        ? ModelQuality.fromJson(json['ModelQuality'] as Map<String, dynamic>)
        : null,
  );
}