getUrlPath<T extends VasatModel<T>> method

String getUrlPath<T extends VasatModel<T>>(
  1. T entity
)

Implementation

String getUrlPath<T extends VasatModel<T>>(T entity) {
  var path = "";
  if (entity.id != null)
    path = "/${entity.id}";

  return getUrlRoot(entity.getObjectName()) + path;
}