SessionShippingAddress.fromJson constructor
SessionShippingAddress.fromJson(
- Object? json
Implementation
factory SessionShippingAddress.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SessionShippingAddress(
city: map['city'] == null ? null : (map['city'] as String),
country: map['country'] == null ? null : (map['country'] as String),
line1: (map['line1'] as String),
line2: map['line2'] == null ? null : (map['line2'] as String),
postalCode:
map['postal_code'] == null ? null : (map['postal_code'] as String),
state: map['state'] == null ? null : (map['state'] as String),
);
}