UpdateNewInlineQuery.fromJson constructor

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

Parse from a json

Implementation

factory UpdateNewInlineQuery.fromJson(Map<String, dynamic> json) => UpdateNewInlineQuery(
  id: int.parse(json['id']),
  senderUserId: json['sender_user_id'],
  userLocation: json['user_location'] == null ? null : Location.fromJson(json['user_location']),
  chatType: json['chat_type'] == null ? null : ChatType.fromJson(json['chat_type']),
  query: json['query'],
  offset: json['offset'],
  extra: json['@extra'],
  clientId: json['@client_id'],
);