QuoteInvoiceSettings.fromJson constructor

QuoteInvoiceSettings.fromJson(
  1. Object? json
)

Implementation

factory QuoteInvoiceSettings.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return QuoteInvoiceSettings(
    daysUntilDue: map['days_until_due'] == null
        ? null
        : (map['days_until_due'] as num).toInt(),
    issuer: map['issuer'] == null
        ? null
        : SessionLiability.fromJson(map['issuer']),
  );
}