getList<T> static method
Implementation
static Future<List<T>> getList<T>(String url,
{dynamic body,
Function? fromJson,
String? rootPath,
dynamic bearer = "",
Map<String, String>? headers}) async {
var ret = await call('GET', url,
body: body,
fromJson: fromJson,
rootPath: rootPath,
list: true,
bearer: bearer,
headers: headers);
// print("got response getList");
// print(ret.runtimeType);
// print(ret);
return ret.cast<T>(); //as List<T>;
}