core.Map<core.String, core.dynamic> toJson() => { if (voiceConfig != null) 'voiceConfig': voiceConfig!, };