toRevisionLocationType method

RevisionLocationType toRevisionLocationType()

Implementation

RevisionLocationType toRevisionLocationType() {
  switch (this) {
    case 'S3':
      return RevisionLocationType.s3;
    case 'GitHub':
      return RevisionLocationType.gitHub;
    case 'String':
      return RevisionLocationType.string;
    case 'AppSpecContent':
      return RevisionLocationType.appSpecContent;
  }
  throw Exception('$this is not known in enum RevisionLocationType');
}