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