toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case NetworkStatus.creating:
      return 'CREATING';
    case NetworkStatus.available:
      return 'AVAILABLE';
    case NetworkStatus.createFailed:
      return 'CREATE_FAILED';
    case NetworkStatus.deleting:
      return 'DELETING';
    case NetworkStatus.deleted:
      return 'DELETED';
  }
}