Request constructor

Request({
  1. required String url,
  2. required String path,
  3. required int status,
  4. required String message,
  5. required Map<String, dynamic> header,
  6. dynamic data,
  7. dynamic log,
  8. String method = 'GET',
  9. dynamic payload,
  10. dynamic query,
  11. String timeRequest = '0 ms',
})

Constructor with required url, path, status, and header, and optional log.

Implementation

Request(
    {required this.url,
    required this.path,
    required this.status,
    required this.message,
    required this.header,
    this.data,
    this.log,
    this.method = 'GET',
    this.payload,
    this.query,
    this.timeRequest = '0 ms'});