InvoiceSettingSubscriptionScheduleSetting.fromJson constructor

InvoiceSettingSubscriptionScheduleSetting.fromJson(
  1. Object? json
)

Implementation

factory InvoiceSettingSubscriptionScheduleSetting.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return InvoiceSettingSubscriptionScheduleSetting(
    accountTaxIds: map['account_tax_ids'] == null
        ? null
        : (map['account_tax_ids'] as List<Object?>)
            .map((el) => InvoiceAccountTaxIdsItemOrId.fromJson(el))
            .toList(),
    daysUntilDue: map['days_until_due'] == null
        ? null
        : (map['days_until_due'] as num).toInt(),
    issuer: ConnectAccountReference.fromJson(map['issuer']),
  );
}