PredictOutput.fromJson constructor

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

Implementation

factory PredictOutput.fromJson(Map<String, dynamic> json) {
  return PredictOutput(
    prediction: json['Prediction'] != null
        ? Prediction.fromJson(json['Prediction'] as Map<String, dynamic>)
        : null,
  );
}