AddressComponent class

Annotations
  • @freezed

Constructors

AddressComponent({required String name, required String shortName, required List<String> types})
Constructs an AddressComponent object.
const
factory
AddressComponent.fromJson(Map<String, Object?> json)
Parse an AddressComponent from json.
factory

Properties

copyWith → $AddressComponentCopyWith<AddressComponent>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
name String
Name of the address component, e.g. "Sydney".
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shortName String
Short name of the address component, e.g. "AU".
no setterinherited
types List<String>
Types of the AddressComponent
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