toSiteState method
Implementation
SiteState toSiteState() {
switch (this) {
case 'PENDING':
return SiteState.pending;
case 'AVAILABLE':
return SiteState.available;
case 'DELETING':
return SiteState.deleting;
case 'UPDATING':
return SiteState.updating;
}
throw Exception('$this is not known in enum SiteState');
}