fromString static method
- String? value
Get the PaymentLogTargetType from a String.
Implementation
static PaymentLogTargetType? fromString(String? value) {
switch (value) {
case 'easypost_net':
return website;
case 'user':
return user;
case 'carrier_account':
return carrierAccount;
case 'manual_credit':
return manualCredit;
case 'bank_account':
return bankAccount;
case 'ach_credit_source':
return achCreditSource;
case 'credit_card':
return creditCard;
default:
return null;
}
}