PlaceData class

The place tagged in a Tweet is not a primary object on any endpoint, but can be found and expanded in the Tweet resource.

The object is available for expansion with expansions=geo.place_id to get the condensed object with only default fields.

Use the expansion with the field parameter: place.fields when requesting additional fields to complete the object.

Annotations
  • @freezed

Constructors

PlaceData({required String id, required String fullName, String? name, PlaceType? placeType, @JsonKey(name: 'country') String? countryName, @JsonKey(name: 'country_code') Country? country, PlaceGeo? geo, List<String>? containedWithin})
const
factory
PlaceData.fromJson(Map<String, Object?> json)
factory

Properties

containedWithin List<String>?
Returns the identifiers of known places that contain the referenced place.
no setterinherited
copyWith → $PlaceDataCopyWith<PlaceData>
no setterinherited
country Country?
The ISO Alpha-2 country code this place belongs to.
no setterinherited
countryName String?
The full-length name of the country this place belongs to.
no setterinherited
fullName String
A longer-form detailed place name.
no setterinherited
geo PlaceGeo?
Contains place details in GeoJSON format.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
The unique identifier of the expanded place, if this is a point of interest tagged in the Tweet.
no setterinherited
name String?
The short name of this place.
no setterinherited
placeType PlaceType?
Specified the particular type of information represented by this place information, such as a city name, or a point of interest.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited