Add `getField` method for Model.