fromString static method

ReportType? fromString(
  1. String? value
)

Get the ReportType from a String.

Implementation

static ReportType? fromString(String? value) {
  switch (value) {
    case 'cash_flow':
      return cashFlow;
    case 'payment_log':
      return paymentLog;
    case 'refund':
      return refund;
    case 'shipment':
      return shipment;
    case 'shipment_invoice':
      return shipmentInvoice;
    case 'tracker':
      return tracker;
    default:
      return null;
  }
}