SubscriptionInvoiceSettings.fromJson constructor

SubscriptionInvoiceSettings.fromJson(
  1. Object? json
)

Implementation

factory SubscriptionInvoiceSettings.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return SubscriptionInvoiceSettings(
    accountTaxIds: map['account_tax_ids'] == null
        ? null
        : (map['account_tax_ids'] as List<Object?>)
            .map((el) => (el as String))
            .toList(),
    issuer: map['issuer'] == null
        ? null
        : SessionLiability.fromJson(map['issuer']),
  );
}