fromJson static method

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

Creates a object from a json

Implementation

static ChosenInlineResult fromJson(Map<String, dynamic> json) {
  return ChosenInlineResult(
    resultId: json['result_id']!,
    from: User.fromJson(json['from']!),
    query: json['query']!,
    location: callIfNotNull(Location.fromJson, json['location']),
    inlineMessageId: json['inline_message_id'],
  );
}