CustomerShipping.fromJson constructor

CustomerShipping.fromJson(
  1. Object? json
)

Implementation

factory CustomerShipping.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CustomerShipping(
    address: AccountSupportAddress.fromJson(map['address']),
    name: (map['name'] as String),
    phone: map['phone'] == null ? null : (map['phone'] as String),
  );
}