toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final data = <String, dynamic>{
    'display_name': displayName,
    'description': description,
    'image': image,
    'custom_questions': customQuestions,
    'is_speech2text': isSpeech2text,
    'languages': languages,
    'colors': colors,
    'voice_code': voice_code,
  };
  if (fileConfig != null) {
    data['file_config'] = fileConfig!.toJson();
  }
  return data;
}