toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (speed != null) json['speed'] = speed;
if (pitch != null) json['pitch'] = pitch;
if (rate != null) json['rate'] = rate;
return {'timescale': json};
}