In this paper, a model-based approach for the design of a bidirectional onboard charger (OBC) device for modern hybrid and fully electrified vehicles is proposed. The main objective and contribution of our study is to incorporate in the same simulation environment both modelling of electrical and thermal behaviour of switching devices. This is because most (if not all) of the studies in the literature present analyses of thermal behaviour based on the use of FEM (Finite Element Method) SWs, which in fact require the definition of complicated models based on partial derivative equations. The simulation of such accurate models is computationally expensive and, therefore, cannot be incorporated into the same virtual environment in which the circuit equations are solved. This requires long waiting times and also means that electrical and thermal models do not interact with each other, limiting the completeness of the analysis in the design phase. As a case study, we take as reference the architecture of a modular bidirectional single-phase OBC, consisting of a Totem Pole-type AC/DC converter with Power Factor Correction (PFC) followed by a Dual Active Bridge (DAB) type DC/DC converter. Specifically, we consider a 7 kW OBC, for which its modules consist of switching devices made with modern 900 V GaN (Gallium Nitrade) and 1200 V SiC (Silicon Carbide) technologies, to achieve maximum performance and efficiency. We present a procedure for sizing and selecting electronic devices based on the analysis of behaviour through circuit models of the Totem Pole PFC and DAB converter in order to perform validation by using simulations that are as realistic as possible. The developed models are tested under various operating conditions of practical interest in order to validate the robustness of the implemented control algorithms under varying operating conditions. The validation of the models and control loops is also enhanced by an exhaustive robustness analysis of the parametric variations of the model with respect to the nominal case. All simulations obtained respect the operating limits of the selected devices and components, for which its characteristics are reported in data sheets both in terms of electrical and thermal behaviour.