AddressModel class

Model que representa dados de endereço

Constructors

AddressModel({String street = '', String number = '', String city = '', String state = '', String country = '', String zipCode = '', String district = ''})
AddressModel.fromJson(String source)
factory
AddressModel.fromMap(Map<String, dynamic> map)
factory

Properties

city String
Cidade
getter/setter pair
country String
País
getter/setter pair
district String
Bairro. Obrigatório caso CEP seja incompleto.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
number String
Número
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String
Estado (Ex: SP)
getter/setter pair
street String
Rua
getter/setter pair
zipCode String
CEP
getter/setter pair

Methods

copyWith({String? street, String? number, String? city, String? state, String? country, String? zipCode, String? district}) AddressModel
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object o) bool
The equality operator.
override