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