InvoiceitemOrId.fromJson constructor

InvoiceitemOrId.fromJson(
  1. Object? json
)

Implementation

factory InvoiceitemOrId.fromJson(Object? json) {
  if (json is String) {
    return InvoiceitemId(id: json);
  }
  return Invoiceitem.fromJson(json);
}