fromString static method
- String? value
Get the BatchState from a String.
Implementation
static BatchState? fromString(String? value) {
switch (value) {
case 'creating':
return creating;
case 'creation_failed':
return creationFailed;
case 'created':
return created;
case 'purchasing':
return purchasing;
case 'purchase_failed':
return purchaseFailed;
case 'purchased':
return purchased;
case 'label_generating':
return labelGenerating;
case 'label_generated':
return labelGenerated;
default:
return null;
}
}