LocationAddress class abstract

Describes the physical address of a location.

Annotations
  • @freezed

Constructors

LocationAddress({@JsonKey.new(name: 'country_code') required String countryCode, @JsonKey.new(name: 'state') String? state, @JsonKey.new(name: 'city') String? city, @JsonKey.new(name: 'street') String? street})
Creates a new LocationAddress object.
const
factory
LocationAddress.fromJson(Map<String, dynamic> json)
Creates a new LocationAddress object from a JSON Map.
factory

Properties

city → String?
Optional. City of the location
no setterinherited
copyWith → $LocationAddressCopyWith<LocationAddress>
Create a copy of LocationAddress with the given fields replaced by the non-null parameter values.
no setterinherited
countryCode → String
The two-letter ISO 3166-1 alpha-2 country code of the country where the location is located
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → String?
Optional. State of the location
no setterinherited
street → String?
Optional. Street address of the location
no setterinherited

Methods

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

Operators

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