showObj method

Future<T> showObj (String path, T obj)

Implementation

Future<T> showObj(String path, T obj) async {
  RequestEntity request = await createRequest();
  request.obj = obj;

  var resultJson = await post(path, request) as Map<String, dynamic>;
  return ServiceConfig.shared.decoder.fromJsonAsT<T>(resultJson);
}