InvoicesResourceFromInvoice.fromJson constructor

InvoicesResourceFromInvoice.fromJson(
  1. Object? json
)

Implementation

factory InvoicesResourceFromInvoice.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return InvoicesResourceFromInvoice(
    action: (map['action'] as String),
    invoice: InvoiceOrId.fromJson(map['invoice']),
  );
}