InlineQueryResultLocation.fromJson constructor

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

Parse from a json

Implementation

factory InlineQueryResultLocation.fromJson(Map<String, dynamic> json) =>
    InlineQueryResultLocation(
      id: json['id'],
      location: Location.fromJson(json['location']),
      title: json['title'],
      thumbnail: json['thumbnail'] == null
          ? null
          : Thumbnail.fromJson(json['thumbnail']),
    );