toEntityStatusCode method
Implementation
EntityStatusCode toEntityStatusCode() {
switch (this) {
case 'IMPAIRED':
return EntityStatusCode.impaired;
case 'UNIMPAIRED':
return EntityStatusCode.unimpaired;
case 'UNKNOWN':
return EntityStatusCode.unknown;
}
throw Exception('$this is not known in enum EntityStatusCode');
}