MessageVoiceNote.fromJson constructor

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

Parse from a json

Implementation

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