getById method

Future<T> getById(
  1. num id
)

Implementation

Future<T> getById(num id) async {
  return _dio.post(url("get"), data: {
    'id': id,
  }).then(
    (response) => response.body<T>(),
  );
}