InputMessageVoiceNote.fromMap constructor

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

Implementation

InputMessageVoiceNote.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 InputFile;
  }
  duration = map['duration'];
  waveform = map['waveform'];
  if (map['caption'] != null) {
    caption = TdApiMap.fromMap(map['caption']) as FormattedText;
  }
}