getById method

Future<T> getById(
  1. num id
)

Implementation

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