toReplacement method

Replacement toReplacement()

Implementation

Replacement toReplacement() {
  switch (this) {
    case 'True':
      return Replacement.$true;
    case 'False':
      return Replacement.$false;
    case 'Conditional':
      return Replacement.conditional;
  }
  throw Exception('$this is not known in enum Replacement');
}