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');
}