CustomerTaxLocation.fromJson constructor

CustomerTaxLocation.fromJson(
  1. Object? json
)

Implementation

factory CustomerTaxLocation.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return CustomerTaxLocation(
    country: (map['country'] as String),
    source: CustomerTaxLocationSource.fromJson(map['source']),
    state: map['state'] == null ? null : (map['state'] as String),
  );
}