CustomerTax.fromJson constructor

CustomerTax.fromJson(
  1. Object? json
)

Implementation

factory CustomerTax.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CustomerTax(
    automaticTax: CustomerTaxAutomaticTax.fromJson(map['automatic_tax']),
    ipAddress:
        map['ip_address'] == null ? null : (map['ip_address'] as String),
    location: map['location'] == null
        ? null
        : CustomerTaxLocation.fromJson(map['location']),
  );
}