RemoteResource constructor

RemoteResource(
  1. String endpoint, {
  2. String? singularName,
})

Implementation

RemoteResource(this.endpoint, {String? singularName}) {
  this.singularName =
      singularName ?? endpoint.substring(0, endpoint.length - 1);
}