RequestApi.postJson constructor

RequestApi.postJson({
  1. required String url,
  2. required Map<String, dynamic> bodyJson,
  3. Map<String, String>? headers,
  4. bool enableCache = false,
})

Implementation

RequestApi.postJson({
  required String url,
  required this.bodyJson,
  this.headers,
  this.enableCache = false,
})  : method = "POST",
      uri = Uri.parse(url),
      files = [],
      body = {};