TrendingLocationData class

Annotations
  • @freezed

Constructors

TrendingLocationData({@JsonKey(name: 'woeid') required int id, @JsonKey(name: 'parentid') required int parentId, required String name, @JsonKey(name: 'country') required String countryName, @JsonKey(name: 'countryCode') required Country? country})
const
factory
TrendingLocationData.fromJson(Map<String, Object?> json)
factory

Properties

copyWith → $TrendingLocationDataCopyWith<TrendingLocationData>
no setterinherited
country Country?
The country code of this location.
no setterinherited
countryName String
The country name of this location.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
The identifier of location for trending topics.
no setterinherited
name String
The name of this location.
no setterinherited
parentId int
The identifier for parent location.
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