toChangeSource method

ChangeSource toChangeSource()

Implementation

ChangeSource toChangeSource() {
  switch (this) {
    case 'ResourceReference':
      return ChangeSource.resourceReference;
    case 'ParameterReference':
      return ChangeSource.parameterReference;
    case 'ResourceAttribute':
      return ChangeSource.resourceAttribute;
    case 'DirectModification':
      return ChangeSource.directModification;
    case 'Automatic':
      return ChangeSource.automatic;
  }
  throw Exception('$this is not known in enum ChangeSource');
}