toJson method
Implementation
@override
Map<String, dynamic> toJson([dynamic extra]) {
return {
"@type": CONSTRUCTOR,
"voice_note": voiceNote.toJson(),
"duration": duration,
"waveform": waveform,
"caption": caption?.toJson(),
};
}