Api constructor

const Api(
  1. String url, {
  2. String method = POST,
  3. dynamic data,
  4. String? contentType,
  5. Map<String, dynamic>? header,
  6. String? requestName,
  7. String? target,
  8. bool mergeByBaseUrl = false,
})

Implementation

const Api(this.url, {
  this.method = POST,
  this.data,
  this.contentType,
  this.header,
  this.requestName,
  this.target,
  this.mergeByBaseUrl = false
});