create method

Future<T> create(
  1. T entity
)

Implementation

Future<T> create(T entity) async {
  return _dio
      .post(url("create"), data: entity.toJSON())
      .then((response) => response.body<T>());
}