toFulfillmentState method
Implementation
FulfillmentState toFulfillmentState() {
switch (this) {
case 'Fulfilled':
return FulfillmentState.fulfilled;
case 'Failed':
return FulfillmentState.failed;
case 'ReadyForFulfillment':
return FulfillmentState.readyForFulfillment;
}
throw Exception('$this is not known in enum FulfillmentState');
}