InvoiceShippingDetails.fromJson constructor

InvoiceShippingDetails.fromJson(
  1. Object? json
)

Implementation

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