MessageVoiceNote.fromJson constructor

MessageVoiceNote.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory MessageVoiceNote.fromJson(Map<String, dynamic> json) => MessageVoiceNote(
  voiceNote: VoiceNote.fromJson(json['voice_note']),
  caption: FormattedText.fromJson(json['caption']),
  isListened: json['is_listened'],
);