$data transforms attributes to camelcase