toReplacementTypeEnum method

ReplacementTypeEnum toReplacementTypeEnum()

Implementation

ReplacementTypeEnum toReplacementTypeEnum() {
  switch (this) {
    case 'KEEP_BASE':
      return ReplacementTypeEnum.keepBase;
    case 'KEEP_SOURCE':
      return ReplacementTypeEnum.keepSource;
    case 'KEEP_DESTINATION':
      return ReplacementTypeEnum.keepDestination;
    case 'USE_NEW_CONTENT':
      return ReplacementTypeEnum.useNewContent;
  }
  throw Exception('$this is not known in enum ReplacementTypeEnum');
}