Frontend model adapt to api model