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

@@ -27,8 +27,10 @@ _$RequestModelImpl _$$RequestModelImplFromJson(Map json) => _$RequestModelImpl(
sendingTime: json['sendingTime'] == null
? null
: DateTime.parse(json['sendingTime'] as String),
preRequestScript: json['preRequestScript'] as String? ?? "",
postRequestScript: json['postRequestScript'] as String? ?? "",
preRequestScript: json['preRequestScript'] as String? ??
"// Use Javacript to modify this request dynamically",
postRequestScript: json['postRequestScript'] as String? ??
"// Use Javacript to modify this request dynamically",
);
Map<String, dynamic> _$$RequestModelImplToJson(_$RequestModelImpl instance) =>