Create Route#to_h method.