InlineQueryResultVideo.fromJson constructor

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

Parses a InlineQueryResultVideo from TDLib JSON.

Implementation

factory InlineQueryResultVideo.fromJson(Map<String, dynamic> json) =>
    InlineQueryResultVideo(
      id: _readString(json['id']),
      video: _readObject(json['video'], Video.fromJson),
      title: _readString(json['title']),
      description: _readString(json['description']),
    );