toUsageRecordResultStatus method
Implementation
UsageRecordResultStatus toUsageRecordResultStatus() {
switch (this) {
case 'Success':
return UsageRecordResultStatus.success;
case 'CustomerNotSubscribed':
return UsageRecordResultStatus.customerNotSubscribed;
case 'DuplicateRecord':
return UsageRecordResultStatus.duplicateRecord;
}
throw Exception('$this is not known in enum UsageRecordResultStatus');
}