Converts to JSON.
Map<String, dynamic> toJson() => { if (format != null) 'format': format!.toJson(), if (voice != null) 'voice': voice, if (speed != null) 'speed': speed, };