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