TaxProductResourceJurisdiction.fromJson constructor

TaxProductResourceJurisdiction.fromJson(
  1. Object? json
)

Implementation

factory TaxProductResourceJurisdiction.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TaxProductResourceJurisdiction(
    country: (map['country'] as String),
    displayName: (map['display_name'] as String),
    level: TaxProductResourceJurisdictionLevel.fromJson(map['level']),
    state: map['state'] == null ? null : (map['state'] as String),
  );
}