InvoiceitemPlanProductOrId.fromJson constructor

InvoiceitemPlanProductOrId.fromJson(
  1. Object? json
)

Implementation

factory InvoiceitemPlanProductOrId.fromJson(Object? json) {
  if (json is String) {
    return InvoiceitemPlanProductId(id: json);
  }
  return InvoiceitemPlanProduct.fromJson(json);
}