toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case DocumentationPartType.api:
      return 'API';
    case DocumentationPartType.authorizer:
      return 'AUTHORIZER';
    case DocumentationPartType.model:
      return 'MODEL';
    case DocumentationPartType.resource:
      return 'RESOURCE';
    case DocumentationPartType.method:
      return 'METHOD';
    case DocumentationPartType.pathParameter:
      return 'PATH_PARAMETER';
    case DocumentationPartType.queryParameter:
      return 'QUERY_PARAMETER';
    case DocumentationPartType.requestHeader:
      return 'REQUEST_HEADER';
    case DocumentationPartType.requestBody:
      return 'REQUEST_BODY';
    case DocumentationPartType.response:
      return 'RESPONSE';
    case DocumentationPartType.responseHeader:
      return 'RESPONSE_HEADER';
    case DocumentationPartType.responseBody:
      return 'RESPONSE_BODY';
  }
}