toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'username'] = this.username;
    json[r'session'] = this.session;
    json[r'user_text'] = this.userText;
    json[r'ai_response'] = this.aiResponse;
    json[r'reason'] = this.reason;
    json[r'additional_feedback'] = this.additionalFeedback;
    json[r'mentor'] = this.mentor;
  if (this.rating != null) {
    json[r'rating'] = this.rating;
  } else {
    json[r'rating'] = null;
  }
  return json;
}