InlineQueryResultPhoto.fromJson constructor

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

Parses a InlineQueryResultPhoto from TDLib JSON.

Implementation

factory InlineQueryResultPhoto.fromJson(Map<String, dynamic> json) =>
    InlineQueryResultPhoto(
      id: _readString(json['id']),
      photo: _readObject(json['photo'], Photo.fromJson),
      title: _readString(json['title']),
      description: _readString(json['description']),
    );