create method

Future<T> create(
  1. T item, {
  2. String? callRole,
})

Implementation

Future<T> create(T item, {String? callRole}) {
  String formattedPath = formatPathFromParts([baseUrl, callRole ?? requestRole, path]);
  return this.post(Uri.parse(formattedPath), item);
}