toDocumentType method
Implementation
DocumentType toDocumentType() {
switch (this) {
case 'Command':
return DocumentType.command;
case 'Policy':
return DocumentType.policy;
case 'Automation':
return DocumentType.automation;
case 'Session':
return DocumentType.session;
case 'Package':
return DocumentType.package;
case 'ApplicationConfiguration':
return DocumentType.applicationConfiguration;
case 'ApplicationConfigurationSchema':
return DocumentType.applicationConfigurationSchema;
case 'DeploymentStrategy':
return DocumentType.deploymentStrategy;
case 'ChangeCalendar':
return DocumentType.changeCalendar;
case 'Automation.ChangeTemplate':
return DocumentType.automationChangeTemplate;
}
throw Exception('$this is not known in enum DocumentType');
}