InvoiceCreateOptionsRendering.fromJson constructor

InvoiceCreateOptionsRendering.fromJson(
  1. Object? json
)

Implementation

factory InvoiceCreateOptionsRendering.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return InvoiceCreateOptionsRendering(
    amountTaxDisplay: map['amount_tax_display'] == null
        ? null
        : SessionAmountTaxDisplay.fromJson(map['amount_tax_display']),
    pdf: map['pdf'] == null ? null : InvoicePdf.fromJson(map['pdf']),
  );
}