toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'template_name'] = this.templateName;
    json[r'display_name'] = this.displayName;
    json[r'description'] = this.description;
    json[r'profile_image'] = this.profileImage;
    json[r'initial_message'] = this.initialMessage;
    json[r'suggested_message'] = this.suggestedMessage;
    json[r'theme'] = this.theme;
    json[r'user_message_color'] = this.userMessageColor;
    json[r'mentor_bubble_color'] = this.mentorBubbleColor;
    json[r'align_mentor_bubble'] = this.alignMentorBubble;
  if (this.systemPrompt != null) {
    json[r'system_prompt'] = this.systemPrompt;
  } else {
    json[r'system_prompt'] = null;
  }
  if (this.llmName != null) {
    json[r'llm_name'] = this.llmName;
  } else {
    json[r'llm_name'] = null;
  }
  if (this.mentorVisibility != null) {
    json[r'mentor_visibility'] = this.mentorVisibility;
  } else {
    json[r'mentor_visibility'] = null;
  }
  if (this.enableImageGeneration != null) {
    json[r'enable_image_generation'] = this.enableImageGeneration;
  } else {
    json[r'enable_image_generation'] = null;
  }
  return json;
}