feat: update RequestModel to include default preRequestScript and postRequestScript

This commit is contained in:
Udhay-Adithya
2025-06-23 22:09:07 +05:30
parent 67af625ccb
commit f60c195510
4 changed files with 12 additions and 8 deletions

View File

@@ -22,8 +22,10 @@ class RequestModel with _$RequestModel {
HttpResponseModel? httpResponseModel,
@JsonKey(includeToJson: false) @Default(false) bool isWorking,
@JsonKey(includeToJson: false) DateTime? sendingTime,
@Default("") String preRequestScript,
@Default("") String postRequestScript,
@Default("// Use Javacript to modify this request dynamically")
String preRequestScript,
@Default("// Use Javacript to modify this request dynamically")
String postRequestScript,
}) = _RequestModel;
factory RequestModel.fromJson(Map<String, Object?> json) =>