SessionCustomerUpdate.fromJson constructor
SessionCustomerUpdate.fromJson(
- Object? json
Implementation
factory SessionCustomerUpdate.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return SessionCustomerUpdate(
address: map['address'] == null
? null
: SessionAddress.fromJson(map['address']),
name: map['name'] == null ? null : SessionAddress.fromJson(map['name']),
shipping: map['shipping'] == null
? null
: SessionAddress.fromJson(map['shipping']),
);
}