import 'dart:convert';

class RadiologyAiAnalysisResponse {
  String? summary;
  String? labResults;
  String? aiPredictions;
  String? riskFactors;
  String? prevention;
  int? languageId;

  RadiologyAiAnalysisResponse({
    this.summary,
    this.labResults,
    this.aiPredictions,
    this.riskFactors,
    this.prevention,
    this.languageId,
  });

  factory RadiologyAiAnalysisResponse.fromRawJson(String str) => RadiologyAiAnalysisResponse.fromJson(json.decode(str));

  String toRawJson() => json.encode(toJson());

  factory RadiologyAiAnalysisResponse.fromJson(Map<String, dynamic> json) => RadiologyAiAnalysisResponse(
    summary: json["summary"],
    labResults: json["lab_results"],
    aiPredictions: json["ai_predictions"],
    riskFactors: json["riskFactors"],
    prevention: json["prevention"],
    languageId: json["language_id"],
  );

  Map<String, dynamic> toJson() => {
    "summary": summary,
    "lab_results": labResults,
    "ai_predictions": aiPredictions,
    "riskFactors": riskFactors,
    "prevention": prevention,
    "language_id": languageId,
  };
}
