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