update method

Future<T> update(
  1. T entity
)

Implementation

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