Convert models from interface to class