WidgetSettings.fromJson constructor

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

Implementation

WidgetSettings.fromJson(Map<String, dynamic> json) {
  agentThinkingText = json['agent_thinking_text'];
  audioVisualizerConfig = json['audio_visualizer_config'] != null
      ? AudioVisualizerConfig.fromJson(json['audio_visualizer_config'])
      : null;
  defaultState = json['default_state'];
  giveFeedbackUrl = json['give_feedback_url'];
  logoIconUrl = json['logo_icon_url'];
  position = json['position'];
  reportIssueUrl = json['report_issue_url'];
  speakToInterruptText = json['speak_to_interrupt_text'];
  startCallText = json['start_call_text'];
  theme = json['theme'];
  viewHistoryUrl = json['view_history_url'];
}