InlineQueryResultVoiceNote.fromJson constructor

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

Parses a InlineQueryResultVoiceNote from TDLib JSON.

Implementation

factory InlineQueryResultVoiceNote.fromJson(Map<String, dynamic> json) =>
    InlineQueryResultVoiceNote(
      id: _readString(json['id']),
      voiceNote: _readObject(json['voice_note'], VoiceNote.fromJson),
      title: _readString(json['title']),
    );