toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.prompt != null) {
    json[r'prompt'] = this.prompt;
  } else {
    json[r'prompt'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.org != null) {
    json[r'org'] = this.org;
  } else {
    json[r'org'] = null;
  }
  if (this.mentorFlow != null) {
    json[r'mentor_flow'] = this.mentorFlow;
  } else {
    json[r'mentor_flow'] = null;
  }
  if (this.sessionId != null) {
    json[r'session_id'] = this.sessionId;
  } else {
    json[r'session_id'] = null;
  }
    json[r'llm_provider'] = this.llmProvider;
    json[r'return_resources'] = this.returnResources;
  return json;
}