Request constructor
Request({})
Implementation
Request({
required this.endpoint,
this.method = HttpMethod.get,
Map<String, String>? headers,
Map<String, dynamic>? queryParameters,
this.onProgress,
this.body,
this.encoding,
DateTime? createdAt,
ObjectId? id,
this.key,
}) : createdAt = createdAt ?? DateTime.now(),
id = id ?? ObjectId() {
if (headers != null) this.headers.addAll(headers);
if (queryParameters != null) this.queryParameters.addAll(queryParameters);
}