toSourceDataFunction method

SourceDataFunction toSourceDataFunction()

Implementation

SourceDataFunction toSourceDataFunction() {
  switch (this) {
    case 'Copy':
      return SourceDataFunction.copy;
    case 'TrimTitle':
      return SourceDataFunction.trimTitle;
    case 'Map':
      return SourceDataFunction.map;
  }
  throw Exception('$this is not known in enum SourceDataFunction');
}