toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
  "token": token,
  "title": title,
  "aiName": aiName,
  "primary_color": primaryColor,
  "secondary_color": secondaryColor,
  "placeholder_input": placeholderInput,
  "show_app_bar": showAppBar,
  "list_suggestions": listSuggestions == null ? [] : List<dynamic>.from(listSuggestions!.map((x) => x)),
  "list_messages": listMessages == null ? [] : List<dynamic>.from(listMessages!.map((x) => x.toJson())),
};