toDocumentationPartType method
Implementation
DocumentationPartType toDocumentationPartType() {
switch (this) {
case 'API':
return DocumentationPartType.api;
case 'AUTHORIZER':
return DocumentationPartType.authorizer;
case 'MODEL':
return DocumentationPartType.model;
case 'RESOURCE':
return DocumentationPartType.resource;
case 'METHOD':
return DocumentationPartType.method;
case 'PATH_PARAMETER':
return DocumentationPartType.pathParameter;
case 'QUERY_PARAMETER':
return DocumentationPartType.queryParameter;
case 'REQUEST_HEADER':
return DocumentationPartType.requestHeader;
case 'REQUEST_BODY':
return DocumentationPartType.requestBody;
case 'RESPONSE':
return DocumentationPartType.response;
case 'RESPONSE_HEADER':
return DocumentationPartType.responseHeader;
case 'RESPONSE_BODY':
return DocumentationPartType.responseBody;
}
throw Exception('$this is not known in enum DocumentationPartType');
}