QuoteInvoiceOrId.fromJson constructor

QuoteInvoiceOrId.fromJson(
  1. Object? json
)

Implementation

factory QuoteInvoiceOrId.fromJson(Object? json) {
  if (json is String?) {
    return QuoteInvoiceId(id: json);
  }
  return QuoteInvoice.fromJson(json);
}