TaxSettingsUpdateOptions.fromJson constructor

TaxSettingsUpdateOptions.fromJson(
  1. Object? json
)

Implementation

factory TaxSettingsUpdateOptions.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return TaxSettingsUpdateOptions(
    defaults: map['defaults'] == null
        ? null
        : SettingsDefaults.fromJson(map['defaults']),
    expand: map['expand'] == null
        ? null
        : (map['expand'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
    headOffice: map['head_office'] == null
        ? null
        : SettingsHeadOffice.fromJson(map['head_office']),
  );
}