def clone(self) -> 'ASTDeclaration':
    if self.templatePrefix:
        templatePrefixClone = self.templatePrefix.clone()
    else:
        templatePrefixClone = None
    return ASTDeclaration(self.objectType, self.directiveType, self.visibility, templatePrefixClone, self.declaration.clone())
def clone(self) -> 'ASTDeclaration':
    if self.templatePrefix:
        templatePrefixClone = self.templatePrefix.clone()
    else:
        templatePrefixClone = None
    return ASTDeclaration(self.objectType, self.directiveType, self.visibility, templatePrefixClone, self.declaration.clone())