InvoiceRendering.fromJson constructor

InvoiceRendering.fromJson(
  1. Object? json
)

Implementation

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