toDeprecatedStatus method

DeprecatedStatus toDeprecatedStatus()

Implementation

DeprecatedStatus toDeprecatedStatus() {
  switch (this) {
    case 'LIVE':
      return DeprecatedStatus.live;
    case 'DEPRECATED':
      return DeprecatedStatus.deprecated;
  }
  throw Exception('$this is not known in enum DeprecatedStatus');
}