showIdField method

Future<T> showIdField (String path String idField)

Implementation

Future<T> showIdField(String path, String idField) async {

  RequestEntity request = await createRequest();
  request.d.idField = idField;

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