api builder reads subclass models