add sendingTime var for Request Model class

This commit is contained in:
Yousef Rabia
2024-03-20 10:13:56 +02:00
parent 9b4076363d
commit 98c2c46dd7

View File

@ -31,6 +31,7 @@ class RequestModel {
this.message,
this.responseModel,
this.isWorking = false,
this.sendingTime,
});
final String id;
@ -50,6 +51,7 @@ class RequestModel {
final String? message;
final ResponseModel? responseModel;
final bool isWorking;
final DateTime? sendingTime;
List<NameValueModel>? get enabledRequestHeaders =>
getEnabledRows(requestHeaders, isHeaderEnabledList);
@ -133,6 +135,7 @@ class RequestModel {
String? message,
ResponseModel? responseModel,
bool? isWorking,
DateTime? sendingTime,
}) {
var headers = requestHeaders ?? this.requestHeaders;
var params = requestParams ?? this.requestParams;
@ -158,6 +161,7 @@ class RequestModel {
message: message ?? this.message,
responseModel: responseModel ?? this.responseModel,
isWorking: isWorking ?? this.isWorking,
sendingTime: sendingTime ?? this.sendingTime,
);
}