src/Gzero/Api/Transformer/RouteTransformer.php
public function transform($route)
    {
        $route = $this->entityToArray(Route::class, $route);
        return [
            'id'        => (int) $route['id'],
            'createdAt' => $route['created_at'],
            'updatedAt' => $route['updated_at']
        ];
    }
public function transform($route)
    {
        $route = $this->entityToArray(Route::class, $route);
        return [
            'id'        => (int) $route['id'],
            'createdAt' => $route['created_at'],
            'updatedAt' => $route['updated_at']
        ];
    }
public function transform ( $ route ) { $ route = $ this -> entityToArray ( Route :: class , $ route ) ; return [ 'id' => ( int ) $ route [ 'id' ] , 'createdAt' => $ route [ 'created_at' ] , 'updatedAt' => $ route [ 'updated_at' ] ] ; }
Transforms route entity

@param Route|array $route route entity

@return array
Transforms route entity