InvoiceRenderingPdf.fromJson constructor

InvoiceRenderingPdf.fromJson(
  1. Object? json
)

Implementation

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