toGlobalNetworkState method

GlobalNetworkState toGlobalNetworkState()

Implementation

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