toModelEndpointStatus method

ModelEndpointStatus toModelEndpointStatus()

Implementation

ModelEndpointStatus toModelEndpointStatus() {
  switch (this) {
    case 'ASSOCIATED':
      return ModelEndpointStatus.associated;
    case 'DISSOCIATED':
      return ModelEndpointStatus.dissociated;
  }
  throw Exception('$this is not known in enum ModelEndpointStatus');
}