fromString static method
- String? value
Get the PaymentLogChargeType from a String.
Implementation
static PaymentLogChargeType? fromString(String? value) {
switch (value) {
case 'refund':
return refund;
case 'insurance':
return insurance;
case 'manual_debit':
return manualDebit;
case 'subscription':
return subscription;
case 'service_fee':
return serviceFee;
case 'recharge':
return recharge;
case 'fulfillment_debit':
return fulfillmentDebit;
case 'manual_credit':
return manualCredit;
case 'payment_failure_deduction':
return paymentFailureDeduction;
case 'credit_card_fee':
return creditCardFee;
case 'payment_refund':
return paymentRefund;
case 'partial_refund':
return partialRefund;
default:
return null;
}
}