toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    if (format != null) "format": format?.toJson(),
    if (speed != null) "speed": speed,
    if (voice != null) "voice": voice?.toJson(),
  };
}