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

@@ -315,8 +315,10 @@ class _$RequestModelImpl implements _RequestModel {
this.httpResponseModel,
@JsonKey(includeToJson: false) this.isWorking = false,
@JsonKey(includeToJson: false) this.sendingTime,
this.preRequestScript = "",
this.postRequestScript = ""});
this.preRequestScript =
"// Use Javacript to modify this request dynamically",
this.postRequestScript =
"// Use Javacript to modify this request dynamically"});
factory _$RequestModelImpl.fromJson(Map<String, dynamic> json) =>
_$$RequestModelImplFromJson(json);