Assuming that TbMenuBO is the same as MenuBO, the solution can be the following:

def Read(menu: TbMenu): MenuBO = {
  menu match {
    case TbMenu(name, url, children) => MenuBO(name, url,

I suggest you adhering to the official coding conventions (method names and field names should start with lower case characters).

Related Query

More Query from same tag