InputMessageVoiceNote.fromJson constructor
Parses a InputMessageVoiceNote from TDLib JSON.
Implementation
factory InputMessageVoiceNote.fromJson(Map<String, dynamic> json) =>
InputMessageVoiceNote(
voiceNote: _readObject(json['voice_note'], InputVoiceNote.fromJson),
caption: _readOptional(json['caption'], FormattedText.fromJson),
selfDestructType: _readOptional(
json['self_destruct_type'],
MessageSelfDestructType.fromJson,
),
);