toMeshStatusCode method

MeshStatusCode toMeshStatusCode()

Implementation

MeshStatusCode toMeshStatusCode() {
  switch (this) {
    case 'ACTIVE':
      return MeshStatusCode.active;
    case 'INACTIVE':
      return MeshStatusCode.inactive;
    case 'DELETED':
      return MeshStatusCode.deleted;
  }
  throw Exception('$this is not known in enum MeshStatusCode');
}