fromMap static method
override
Construct from Map.
Implementation
static Address? fromMap(Map<String, dynamic>? _map) {
if (_map == null) return null;
var _ = _map["@type"];
if (_ != CONSTRUCTOR) return null;
var extra = _map['@extra'];
var clientId = _map['@clientId'];
var country_code = _map['country_code']! as String;
var state = _map['state']! as String;
var city = _map['city']! as String;
var street_line1 = _map['street_line1']! as String;
var street_line2 = _map['street_line2']! as String;
var postal_code = _map['postal_code']! as String;
return Address(
extra: extra,
clientId: clientId,
country_code: country_code,
state: state,
city: city,
street_line1: street_line1,
street_line2: street_line2,
postal_code: postal_code,
);
}