InlineQuery.fromJson constructor
Creates an InlineQuery object from JSON object
Implementation
factory InlineQuery.fromJson(Map<String, dynamic> json) {
return InlineQuery(
id: json['id'] as String,
from: User.fromJson(json['from'] as Map<String, dynamic>),
query: json['query'] as String,
offset: json['offset'] as String,
chatType: json['chat_type'] == null
? null
: ChatType.fromJson(json['chat_type']),
location: json['location'] == null
? null
: Location.fromJson(json['location'] as Map<String, dynamic>),
);
}