create method
Implementation
Future<T> create(T entity) async {
return dio
.post(
'/create',
data: entity.toJSON(),
)
.then(
(response) => response.body<T>(),
);
}
Future<T> create(T entity) async {
return dio
.post(
'/create',
data: entity.toJSON(),
)
.then(
(response) => response.body<T>(),
);
}