src/FieldManager.php
public function transformToFrontName(array $array = [])
    {
        $transformed = [];
        $transformation = $this->getTransformation();
        
        if (key_exists('public_id', $array)) {
            $transformed['id'] = $array['public_id'];
        }
        
        foreach ($transformation as $name => $new_name) {
            
            if (! key_exists($name, $array)) {
                
                foreach ($array as $field => $rule) {
                    if ($this->getOnlyField($field) == $name) {
                        $transformed[$field] = $array[$field];
                    }
                }
                continue;
            }
            
            $transformed[$new_name] = $array[$name];
        }
        
        return $transformed;
    }
public function transformToFrontName(array $array = [])
    {
        $transformed = [];
        $transformation = $this->getTransformation();
        
        if (key_exists('public_id', $array)) {
            $transformed['id'] = $array['public_id'];
        }
        
        foreach ($transformation as $name => $new_name) {
            
            if (! key_exists($name, $array)) {
                
                foreach ($array as $field => $rule) {
                    if ($this->getOnlyField($field) == $name) {
                        $transformed[$field] = $array[$field];
                    }
                }
                continue;
            }
            
            $transformed[$new_name] = $array[$name];
        }
        
        return $transformed;
    }
Transform attributes model.

@return array