fromString static method

PaymentLogSourceType? fromString(
  1. String? value
)

Get the PaymentLogSourceType from a String.

Implementation

static PaymentLogSourceType? fromString(String? value) {
  switch (value) {
    case 'refund':
      return refund;
    case 'user':
      return user;
    case 'manual_debit':
      return manualDebit;
    case 'bank_account':
      return bankAccount;
    case 'ach_credit_source':
      return achCreditSource;
    case 'credit_card':
      return creditCard;
    case 'insurance':
      return insurance;
    case 'subscription':
      return subscription;
    case 'fulfillment_order':
      return fulfillmentOrder;
    case 'payment_refund':
      return paymentRefund;
    case 'post_pay_shipment':
      return postPayShipment;
    default:
      return null;
  }
}