ChosenInlineResult.fromJson constructor

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

Creates a new ChosenInlineResult object from json.

Implementation

factory ChosenInlineResult.fromJson(Map<String, dynamic> json) {
  return ChosenInlineResult(
    resultId: json['result_id'] as String,
    from: User.fromJson(json['from'] as Map<String, dynamic>),
    location: json['location'] == null
        ? null
        : Location.fromJson(json['location'] as Map<String, dynamic>),
    inlineMessageId: json['inline_message_id'] as String?,
    query: json['query'] as String,
  );
}