InvoicePdf.fromJson constructor

InvoicePdf.fromJson(
  1. Object? json
)

Implementation

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