toPlatformStatus method
Implementation
PlatformStatus toPlatformStatus() {
switch (this) {
case 'Creating':
return PlatformStatus.creating;
case 'Failed':
return PlatformStatus.failed;
case 'Ready':
return PlatformStatus.ready;
case 'Deleting':
return PlatformStatus.deleting;
case 'Deleted':
return PlatformStatus.deleted;
}
throw Exception('$this is not known in enum PlatformStatus');
}