AccountInvoicesSettings.fromJson constructor

AccountInvoicesSettings.fromJson(
  1. Object? json
)

Implementation

factory AccountInvoicesSettings.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return AccountInvoicesSettings(
      defaultAccountTaxIds: map['default_account_tax_ids'] == null
          ? null
          : (map['default_account_tax_ids'] as List<Object?>)
              .map((el) => TaxIdOrId.fromJson(el))
              .toList());
}