InlineQueryResultVenue constructor
const
InlineQueryResultVenue({
- @JsonKey(name: 'type') @Default(InlineQueryResultType.venue) InlineQueryResultType type,
- @JsonKey(name: 'id') required String id,
- @JsonKey(name: 'latitude') required double latitude,
- @JsonKey(name: 'longitude') required double longitude,
- @JsonKey(name: 'title') required String title,
- @JsonKey(name: 'address') required String address,
- @JsonKey(name: 'foursquare_id') String? foursquareId,
- @JsonKey(name: 'foursquare_type') String? foursquareType,
- @JsonKey(name: 'google_place_id') String? googlePlaceId,
- @JsonKey(name: 'google_place_type') String? googlePlaceType,
- @JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,
- @JsonKey(name: 'input_message_content') @InputMessageContentConverter() InputMessageContent? inputMessageContent,
- @JsonKey(name: 'thumbnail_url') String? thumbnailUrl,
- @JsonKey(name: 'thumbnail_width') int? thumbnailWidth,
- @JsonKey(name: 'thumbnail_height') int? thumbnailHeight,
Constructs an InlineQueryResultVenue object
Implementation
const factory InlineQueryResultVenue({
/// Type of the result, always [InlineQueryResultType.venue]
@JsonKey(name: 'type')
@Default(InlineQueryResultType.venue)
InlineQueryResultType type,
/// Unique identifier for this result, 1-64 Bytes
@JsonKey(name: 'id') required String id,
/// Latitude of the venue location in degrees
@JsonKey(name: 'latitude') required double latitude,
/// Longitude of the venue location in degrees
@JsonKey(name: 'longitude') required double longitude,
/// Title of the venue
@JsonKey(name: 'title') required String title,
/// Address of the venue
@JsonKey(name: 'address') required String address,
/// Optional. Foursquare identifier of the venue if known
@JsonKey(name: 'foursquare_id') String? foursquareId,
/// Optional. Foursquare type of the venue, if known.
///
/// (For example, "arts_entertainment/default", "arts_entertainment/aquarium" or "food/icecream".)
@JsonKey(name: 'foursquare_type') String? foursquareType,
/// Optional. Google Places identifier of the venue
@JsonKey(name: 'google_place_id') String? googlePlaceId,
/// Optional. Google Places type of the venue. (See supported types.)
@JsonKey(name: 'google_place_type') String? googlePlaceType,
/// Optional. Inline keyboard attached to the message
@JsonKey(name: 'reply_markup') InlineKeyboardMarkup? replyMarkup,
/// Optional. Content of the message to be sent instead of the venue
@JsonKey(name: 'input_message_content')
@InputMessageContentConverter()
InputMessageContent? inputMessageContent,
/// Optional. URL of the thumbnail for the result
@JsonKey(name: 'thumbnail_url') String? thumbnailUrl,
/// Optional. Thumbnail width
@JsonKey(name: 'thumbnail_width') int? thumbnailWidth,
/// Optional. Thumbnail height
@JsonKey(name: 'thumbnail_height') int? thumbnailHeight,
}) = _InlineQueryResultVenue;