get<T> static method

Future<T> get<T>(
  1. String url, {
  2. dynamic body,
  3. Function? fromJson,
  4. String? rootPath,
  5. dynamic bearer = "",
  6. Map<String, String>? headers,
})

Implementation

static Future<T> get<T>(String url,
    {dynamic body,
    Function? fromJson,
    String? rootPath,
    dynamic bearer = "",
    Map<String, String>? headers}) async {
  return await call('GET', url,
      body: body,
      fromJson: fromJson,
      rootPath: rootPath,
      bearer: bearer,
      headers: headers) as T;
}