Add getFields method on baseModel to get all fields
needed for API