InlineQueryResultContact.fromJson constructor

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

Parses a InlineQueryResultContact from TDLib JSON.

Implementation

factory InlineQueryResultContact.fromJson(Map<String, dynamic> json) =>
    InlineQueryResultContact(
      id: _readString(json['id']),
      contact: _readObject(json['contact'], Contact.fromJson),
      thumbnail: _readOptional(json['thumbnail'], Thumbnail.fromJson),
    );