MessageVoiceNote.fromMap constructor

MessageVoiceNote.fromMap(
  1. Map<String, dynamic> map
)

Implementation

MessageVoiceNote.fromMap(Map<String, dynamic> map) {
  extra = map['@extra'];
  client_id = map['@client_id'];
  if (map['voice_note'] != null) {
    voice_note = TdApiMap.fromMap(map['voice_note']) as VoiceNote;
  }
  if (map['caption'] != null) {
    caption = TdApiMap.fromMap(map['caption']) as FormattedText;
  }
  is_listened = map['is_listened'];
}